<Connector keyAlias="tomcat" .... >
到目前为止,我得到了工作表的总行数。我有一个名为&#34; key&#34;的列。如何计算键列中的总行数?
答案 0 :(得分:0)
尝试以下代码查找列中的行数 - 只需将范围(“A1048576”)更改为范围(“B1048576”)/范围(“C1048576”)等,以查找列的各行数
Set ExcelObj = CreateObject("Excel.Application")
ExcelObj.Visible = true
Set ExcelConfigFile = ExcelObj.Workbooks.Open("C:\Users\pankaj.jaju\Desktop\Work.xlsx")
Set Sheet = ExcelConfigFile.Worksheets("Scripts")
TotalRow = Sheet.Range("A1048576").End(-4162).Row 'xlUp = -4162
MsgBox TotalRow