I want to copy the active cell to the last free cell in column A of another sheet called "comments".
I tried this code:
Sub Macro3()
'Keyboard Shortcut: Ctrl y
Dim LastRowMaster As Long
'Take the cell I'm in
ActiveCell.Select
'Copy it
Selection.Copy
'Go to the sheet I want to paste into
Sheets("comments").Select
'Find the last row in my sheet "comments" and +1
LastRowMaster = Worksheets("comments").Cells(Worksheets("comments").Rows.Count, 1).End(xlUp).Row + 1
'Choose the last free cell in column A
Range("A:").Copy Destination:=ThisWorkbook.Worksheets("comments").Cells(LastRowMaster, "A")
'Copy my paste
ActiveSheet.Paste
End Sub
I get an error
"Method 'range' of object_global failed
in this line:
Range("A:").Copy Destination:=ThisWorkbook.Worksheets("comments").Cells(LastRowMaster, "A")