I have the below code to bring information over from another spreadsheet, but every time I run the macro, I get a runtime error on the bold section. Can anyone please assist?
Private Sub CommandButton1_Click()
ChDir "C:\Test Sample Upload"
Workbooks.Open Filename:= _
"C:\Test Sample Upload\Store Surveys- NEW- SM Blank MasterStorexxx.xls"
Range("O2:O13").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Windows("Store Surveys- NEW- SM Blank MasterV01.xls").Activate
Range("O2").Select
ActiveSheet.Paste
Columns("O:O").EntireColumn.AutoFit
End Sub
Private Sub CommandButton1_Click()
ChDir "C:\Test Sample Upload"
Workbooks.Open Filename:= _
"C:\Test Sample Upload\Store Surveys- NEW- SM Blank MasterStorexxx.xls"
Range("O2:O13").Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Windows("Store Surveys- NEW- SM Blank MasterV01.xls").Activate
Range("O2").Select
ActiveSheet.Paste
Columns("O:O").EntireColumn.AutoFit
End Sub