The error occurs at the highlighted line:
Dim Filepath As String
Dim x As Integer
Dim y As Integer
Dim wb As Workbook
Dim crwb As Workbook
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
y = 3
x = 1
Set crwb = ActiveWorkbook
Filepath = Application.GetOpenFilename
If File = "False" Then Exit Sub
MsgBox Filepath
Set wb = Workbooks.Open(Filepath, True, True)
For x = 1 To 3000
If Not (IsEmpty(wb.Worksheets("report").Cells(x, 1))) Then
wb.Worksheets("report").Rows(x).Select
Selection.Copy
<SPAN style="BACKGROUND-COLOR: #ffff00">crbw.Worksheets("Review").Rows.Select</SPAN>
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
y = y + 1
End If
Next x
wb.Close False
Set wb = Nothing
Application.ScreenUpdating = True
End Sub
Dim Filepath As String
Dim x As Integer
Dim y As Integer
Dim wb As Workbook
Dim crwb As Workbook
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
y = 3
x = 1
Set crwb = ActiveWorkbook
Filepath = Application.GetOpenFilename
If File = "False" Then Exit Sub
MsgBox Filepath
Set wb = Workbooks.Open(Filepath, True, True)
For x = 1 To 3000
If Not (IsEmpty(wb.Worksheets("report").Cells(x, 1))) Then
wb.Worksheets("report").Rows(x).Select
Selection.Copy
<SPAN style="BACKGROUND-COLOR: #ffff00">crbw.Worksheets("Review").Rows.Select</SPAN>
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
y = y + 1
End If
Next x
wb.Close False
Set wb = Nothing
Application.ScreenUpdating = True
End Sub