Excel VBA problem - TechRepublic
General discussion
August 9, 2000 at 04:26 PM
m.r.chambers

Excel VBA problem

by m.r.chambers . Updated 25 years, 9 months ago

I have an excel spreadsheet with an unknown number of rows (the number changes as the sheet is used). I want a macro that will determine how many rows are being used and will select only those rows. I know the starting row, and I can get the numberof rows being used easily with the CountA() function, but I keep getting an Type Missmatch error when I use
Rows.(A5:rnge).Select
or any other similar conbination I could think of. Is there any way around this problem?

Thanks
M.R.Chambers

This discussion is locked

All Comments