I have created the following macro however it stops at "Range(B2:AI3").Select (line 5):
ChDir "C:\Wages"
Workbooks.Open Filename:="C:\FE Template.csv"
Windows("Wage Record.xlsm").Activate
Sheets("CSVUpload").Select
Range("B2:AI3").Select
Selection.Copy
Windows("FE Template.csv").Activate
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone , SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Windows("Wage Record.xlsm").Activate
Can someone please advise why it wants this line debugged?
Thank you
ChDir "C:\Wages"
Workbooks.Open Filename:="C:\FE Template.csv"
Windows("Wage Record.xlsm").Activate
Sheets("CSVUpload").Select
Range("B2:AI3").Select
Selection.Copy
Windows("FE Template.csv").Activate
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteAllUsingSourceTheme, Operation:=xlNone , SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Windows("Wage Record.xlsm").Activate
Can someone please advise why it wants this line debugged?
Thank you