How using VBScript I can count the number of rows filled with data and how many column has a value for a particular row?
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.)
So here my required Loop iteration which i would use for my other logic is N for rows and for columns it would be N+1 Update
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
Thanks
oXLAp.WorksheetFunction.CountA(). I can give you an example but as Scott suggested, give it a try and then post back with what you tried and where are you stuck and we will take it from there :)