Reverendd2
New Member
- Joined
- Oct 26, 2009
- Messages
- 5
I've copied and pasted from Bill's book "VBA and Macros for MS Office Excel 2007", tried typing etc. but continue to get an error...
This is supposed to select the final row in the data list...
Error is "Compile Error. Expected Function or Variable."
I thought "FinalRow" was a variable that I am trying to create.
Help?
I'm relearning VBA after a long absence.
Sub FinalRow()
FinalRow = Range("A65536").End(xlUp).Row
TotalRow = FinalRow + 1
Range("A" & FinalRow + 1).Value = "THE END"
End Sub
This is supposed to select the final row in the data list...
Error is "Compile Error. Expected Function or Variable."
I thought "FinalRow" was a variable that I am trying to create.
Help?
I'm relearning VBA after a long absence.
Sub FinalRow()
FinalRow = Range("A65536").End(xlUp).Row
TotalRow = FinalRow + 1
Range("A" & FinalRow + 1).Value = "THE END"
End Sub