J
Jako
I am using this code to count the number of cells in column A that ar
NOT empty.
'-------------------------------------------------------------
Sub RowACount()
Dim rng As Range
Dim count As Long
Set rng = Range(Cells(1, 1), Cells(Rows.count, 1).End(xlUp))
count = Application.WorksheetFunction.CountA(rng)
MsgBox count
End Sub
'------------------------------------------------------------
Which works great!!
What i want to then do is...
Count the number of cells in column C, (but i'm not sure how to chang
the code to do this), and name the Subroutine as RowCCount()
Also
I want to count the number of Empty cells in columm A and name th
Subroutine it Sub EmptyCellCount()
Many thank
NOT empty.
'-------------------------------------------------------------
Sub RowACount()
Dim rng As Range
Dim count As Long
Set rng = Range(Cells(1, 1), Cells(Rows.count, 1).End(xlUp))
count = Application.WorksheetFunction.CountA(rng)
MsgBox count
End Sub
'------------------------------------------------------------
Which works great!!
What i want to then do is...
Count the number of cells in column C, (but i'm not sure how to chang
the code to do this), and name the Subroutine as RowCCount()
Also
I want to count the number of Empty cells in columm A and name th
Subroutine it Sub EmptyCellCount()
Many thank