Good Morning!
How can I modify a macro to do either of these 2 things below.
If column A is empty but for the header, the cursor is to go to the top,
which is done by this action:
Application.Goto Reference:="R1C1"
Range("A2").Select
If, on the other hand, there are items in any row of column A, then this
happens (i.e., cursor goes to the first empty row down in column A):
Application.Goto Reference:="R1C1"
Range("A2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
I do have a macro that I'd been using up till now but that has an error when
I use a brand new copy of the sheet. This is the macro to be modified.
*********************************************************
Sub AddNewEntry()
'
ActiveSheet.Unprotect 'place at the beginning of the code
Application.Goto Reference:="R1C1"
Range("A2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Protect ' place at end of code
End Sub
*********************************************************
Thanks.
Bookmarks