I am trying to copy the current row to a new blank row on another sheet after selecting a value from a validation list (dropdown list)
I have the following code tested working from a command button and it works, but I want it to be if the value selected equals 'Approved for archive' then copy else don't copy.
Also is there any way of removing it from the 'Archived' sheet if the value has been changed which does not equal 'Approved for archive'?
I have the following code tested working from a command button and it works, but I want it to be if the value selected equals 'Approved for archive' then copy else don't copy.
Code:
Private Sub CommandButton1_Click()
Dim CurrentRow As Integer
CurrentRow = ActiveWindow.RangeSelection.Row
Rows(CurrentRow).Select 'This copies the selected row
Selection.Copy
Sheets("Archived").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial _
Paste:=xlPasteValues
Application.CutCopyMode = False
End Sub
Also is there any way of removing it from the 'Archived' sheet if the value has been changed which does not equal 'Approved for archive'?