counting ranges of rows/cells
Posted by dave brown on June 22, 2001 11:23 AM
Hello,
I wonder if anyone can help me determine how I might be able to use VBA within excel to count the number of rows that contain data. I have played with this using this code:
Set owb = GetObject("Z:\dave's test folder\tester.xls")
owb.Activate
totalrows = Rows.Count
This returns all 65536 rows (essentially an empty sheet, right?)
Any suggestions?
Dave Brown
Hill AFB, Utah