This should work better:
Private Sub CommandButton1_Click()
If MsgBox("If you have ordered up a replacement part then Press OK, if not then press cancel.", _
vbOKCancel, "Order replaced?") = vbOK Then
Sheets("Sheet2").Range("I7:I200").Value = Sheets("Sheet2").Range("M7:M200").Value
Sheets("Sheet3").Range(Sheets("Sheet3").Cells(7, "B"), Sheets("Sheet3").Cells(Sheets("Sheet3").Cells(Rows.Count, "J").End(xlUp).Row, "J")).Copy Destination:=Sheets("Sheet3").Cells(Sheets("Sheet3").Cells(Rows.Count, "L").End(xlUp).Row + 1, "L")
Sheets("Sheet3").Range(Sheets("Sheet3").Cells(7, "B"), Sheets("Sheet3").Cells(Sheets("Sheet3").Cells(Rows.Count, "J").End(xlUp).Row, "J")).ClearContents
End If
End Sub
Bookmarks