Hi,
I have the following macro, which is suppose to copy a row that is set to "VERIFIED" to the archive worksheet.
The code is in "Module 1" the sheet where it has to copy from has name "WBO INFO" and the sheet where it needs to copy to "Archives" and clear that row (actually delete that row would be better if possible)
Number of columns are 15 and "VERIFIED" is on column "O"
So I select the cell with value "VERIFIED" in "WBO INFO" sheet and run macro and I get error "Runtime error 1004: Application-defined or object-defined error". on lines:
Destination:=Worksheets("Archives").Cells(1, 1).End(xlDown).Offset(1, 0)
ActiveCell.Offset(0, -14).Range("A1:O1).ClearContents
Complete code:
Sub Archive()
If ActiveCell.Value = "VERIFIED" Then
ActiveCell.Offset(0, -14).Range("A1:O1").Copy _
Destination:=Worksheets("Archives").Cells(1, 1).End(xlDown).Offset(1, 0)
ActiveCell.Offset(0, -14).Range("A1:O1).ClearContents
End If
End Sub
Thanks,
i||uSi0n^
Bookmarks