Using VB for Excel, my objective is that when a cell, any cell is edited in the sheet, the macro copies the entire sheet to a different sheet and then goes back to the original sheet, but I am getting an error at the select statement.
How do I fix this?
Private Sub worksheet_change(ByVal Target As Range)
Cells.Select
Selection.Copy
Sheets("Tempsheet").Select
Range("A1:C1").Select ***'run time error 1004, select method of range class failed***
ActiveSheet.Buttons.Add(388.5, 47, 42, 17.5).Select
ActiveSheet.Paste
Sheets("MainSheet").Select
End Sub