New guy back again. I'm trying to clean up my macro I made using the recorder. This is the code and I get a Run-time error '1004': Application-defined or object-defined error. I don't know enough to know what the error is or how to fix it. For what it is worth the code is the very first thing in the macro. I was trying to type a column name in row F that says "AO Name" in F1. What am I doing wrong?
Code:
' Find the last row with data. This might change every day
FinalRow = Cells(Rows.Count, 1).End(x1Up).Row
TotalRow = FinalRow + 1
Range("F" & TotalRow).Value = "AO Name"