I want to see if a specific cell is the value I expect, if so, I want to paste it to another sheet. But my code went wrong somehow. Here is my code:
Private Sub CommandButton1_Click()
Sheets("Sheet3").Select
If Cells(2,6).Value == 25 Then
Cells(2, 6).Select
Selection.Copy
Sheets("Sheet1").Select
Cells(4, 1).Paste
End If
End Sub