Wow that shortens the code!Nice one Colin!![]()
Sub NonBlanks() Dim RngToSrch As Range, cl As Range, RngCnt As Long Set RngToSrch = Sheets(1).Range("C5").CurrentRegion RngCnt = 0 Debug.Print WorksheetFunction.CountA(RngToSrch) End Sub
Wow that shortens the code!Nice one Colin!![]()
Sub NonBlanks() Dim RngToSrch As Range, cl As Range, RngCnt As Long Set RngToSrch = Sheets(1).Range("C5").CurrentRegion RngCnt = 0 Debug.Print WorksheetFunction.CountA(RngToSrch) End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks