Siddarth
New Member
HI, I have to check how many non-empty cells are there in a row range, say from A1 to Z1 and then display a message in a MsgBox in VB if the count is greater then 3. Now i have the following code for the same...
I have this code written i the worksheet_change event.
I want the same code to be running in other row ranges as well, eg : A2:Z2, A3:Z3, A4:Z4 etc..
Please help...
Thanks in advance.
Code:
If (WorksheetFunction.CountA(Range("A1:Z1") > 3)) Then
MsgBox "Count is Greater then 3"
End If
I have this code written i the worksheet_change event.
I want the same code to be running in other row ranges as well, eg : A2:Z2, A3:Z3, A4:Z4 etc..
Please help...
Thanks in advance.