假设:.xls文件有5列,3行数据, appExcel As excel.Application redim strExcell(3,5) as string For i = 1 To 3 for j=1 to 5 strExcell(j,i)=appExcel.Cells(i, j) next j next i 将excell表格内容读到数组strExcell中
假设:.xls文件有3行,5列数据 appExcel As excel.Application redim strExcell(3,5) as string for i=1 to 3 for j=1 to 5 strExcell(i,j)=appexcell.cell(i,j) next j next i 将excell表格数据读到数组strExcell 中
appExcel As excel.Application
redim strExcell(3,5) as string
For i = 1 To 3
for j=1 to 5
strExcell(j,i)=appExcel.Cells(i, j)
next j
next i
将excell表格内容读到数组strExcell中
appExcel As excel.Application
redim strExcell(3,5) as string
for i=1 to 3
for j=1 to 5
strExcell(i,j)=appexcell.cell(i,j)
next j
next i
将excell表格数据读到数组strExcell 中
而且每个表总共多少行多少列?
appExcel.Sheets(1).Select '选择第一个表
至于行列,你进excell表里,列有列号,行有A-Z行号
我想得到某个表例如:sheet1的总行数,总列数 ?怎么办? thanks
最大列通过"A,B,C"等列号察看
有没有,哪个对象的哪个属性可以取出最大行号,和列号呢?
有没有,哪个对象的哪个属性可以取出最大行号,和列号呢?你有QQ么?