Hi,
I'm brand new to Mr. Excel so try not to filet me too much if I'm dumb. My question:
I just picked up VBA AND MACROS: Microsoft Excel 2010 and am trying to follow along with some of the basic exercises. I have, however, run into an issue and I don't see what I'm doing wrong.
The book says to set a "FinalRow" variable to the last row in a worksheet.
I've retyped the code as:
FinalRow = Cells(Rows.Count, 1).End(x1Up).Row
Excel/VBA doesn't seem to like it. I get a Run-time error '1004': Application-defined or object-defined error
What am I doing wroing?
I'm brand new to Mr. Excel so try not to filet me too much if I'm dumb. My question:
I just picked up VBA AND MACROS: Microsoft Excel 2010 and am trying to follow along with some of the basic exercises. I have, however, run into an issue and I don't see what I'm doing wrong.
The book says to set a "FinalRow" variable to the last row in a worksheet.
I've retyped the code as:
FinalRow = Cells(Rows.Count, 1).End(x1Up).Row
Excel/VBA doesn't seem to like it. I get a Run-time error '1004': Application-defined or object-defined error
What am I doing wroing?