|
问题一:
Dim ExcelApp,ExcelWorkBooks,ExcelSheet( 1 To 4),myTotalColumn( 1 To 4)
为什么老提示缺少')'呢?
问题二:
EfileName="D:\5.xls"
openexcel EfileName
Function OpenExcel(fileName)
Set ExcelApp=CreateObject("Excel.Application")
Set ExcelWorkBooks=ExcelApp.WorkBooks.Open(fileName)
For i= 1 To 4
Set ExcelSheet(i)= ExcelWorkBooks.Worksheets("第"&i&"页")
Next
myTotalColumn(1)= ExcelSheet(1).UsedRange.Columns.Count
End Function
提示Set ExcelSheet(i)= ExcelWorkBooks.Worksheets("第"&i&"页")行ExcelSheet类型不匹配
那么Excel多页的怎么处理呢?
谢谢,大家给看看哦
[ 本帖最后由 月亮冰 于 2009-7-7 15:32 编辑 ] |
|