SyntaxFix
Write A Post
Hire A Developer
Questions
This code works for me:
Sub test() Dim myRange As Range Dim NumRows As Integer Set myRange = Range("A:A") NumRows = Application.WorksheetFunction.CountA(myRange) MsgBox NumRows End Sub