首页上一页 1 下一页尾页 1 条记录 1/1页
可不可在原来的excel中创建一个
发表在VB答疑区
2009-03-23
是否精华
是
否
版块置顶:
是
否
我在I盘有一个123.xls文件,用vb打开同时创建一个sheet表。可以吗
Dim excelid As Excel.Application
Dim excelidbook As Excel.Workbook
Dim excelIDsheet As New Excel.Worksheet
Set excelid = New Excel.Application
excelid.Workbooks.Open ("i:\123.xls")
ii = 1
Set excelIDsheet= excelid.Worksheets(ii)
excelid.Worksheets(ii).Activate
excelid.Visible = True
这个样写会提示“下标越界”
如有答案,请详细说明
Dim excelid As Excel.Application
Dim excelidbook As Excel.Workbook
Dim excelIDsheet As New Excel.Worksheet
Set excelid = New Excel.Application
excelid.Workbooks.Open ("i:\123.xls")
ii = 1
Set excelIDsheet= excelid.Worksheets(ii)
excelid.Worksheets(ii).Activate
excelid.Visible = True
这个样写会提示“下标越界”
如有答案,请详细说明