如何使用 VBScript 我可以计算填充数据的行数以及有多少列具有特定行的值?
Col1 Col2 Col3 ........ColN-1 ColN+1...ColN+2.......ColN+2
Row1 A B Null Null
Row2 1 2 Y .
Row3 2 .
Row4 P Z
. .
.
.
RowN-2 .
RowN-1 T L Null.......Null
RowN S
RowN+1 Null ........(till the last column of the excel sheet that its version supprts.)
所以在这里我需要的循环迭代,我将用于我的其他逻辑是 N 行和列,它将是 N+1 更新
Option Explicit
Dim rg,CountBlank
For C=0 to 10
Set rg = Ob6.Range(Ob6.Columns(c),Ob6.Columns(c))
CountBlank = objExcel1.Application.WorksheetFunction.CountBlank(rg)
MsgBox("Column"&C": "&"Has"&(rg.rows.Count-CountBlank))
Next
谢谢