Hi Gaurav,
I'm very new to vbscript.Can you please tell me where i can place your code
Wbk.Worksheets("SheetName").Cells(Rows.Count, ColumnNumber).End(xlUp).Row)
In below code,
Private Sub CommandButton1_Click()
Dim wS As Worksheet
Dim rCntr As Long
Dim lC As Range
Set wS = Worksheets("Sheet1") 'Replace Sheet1 with name of your worksheet
For Each lC In wS.Range(wS.Cells(2, 1), wS.Cells(wS.Rows.Count, 1).End(xlUp)) 'Assumes there are headers which are not counted (at A1)
If lC.Value <> "" And lC.Offset(0, 1).Value <> "" And lC.Offset(0, 2).Value <> "" Then rCntr = rCntr + 1
Next lC
'do something with the counted rows
MsgBox rCntr
End Sub
Some of the team members are provided some solution for this post in forum.Thx for your help.but the only problem is
if any of the column data is coming as null in that row.It is not counting that record.
Especially first coulmn value as null in that row then it is failing...
Bookmarks