I am running a macro to move one line of data from my activesheet to another sheet.
THe first time I run my code it works fine, but on the second time I run the code I recieve the following error message:
Run Time Error '1004':
Paste method of worksheet class failed
This is my code
Is there anything I can change to stop this from happening?
THe first time I run my code it works fine, but on the second time I run the code I recieve the following error message:
Run Time Error '1004':
Paste method of worksheet class failed
This is my code
Code:
Private Sub CommandButton1_Click()
Userform1.Hide
ActiveCell.EntireRow.Copy
Sheets("Filled Jobs").Select
Range("A65536").End(xlUp).Offset(1, 0).Select
Sheets("Filled Jobs").Unprotect Password:="secret"
ActiveSheet.Paste
Sheets("Filled Jobs").Protect Password:="secret"
Sheets("Current Jobs").Select
ActiveSheet.Unprotect Password:="secret"
ActiveCell.EntireRow.Delete
ActiveSheet.Protect Password:="secret"
End Sub
Is there anything I can change to stop this from happening?