I want to open a couple .CSV file and save them as an .XLSX file using a macro shortcut. When I run the macro below, saved in PERSONAL.XLSB, using View>Macro>Run all works fine. Two .csv files are opned and saved as .xlsx files. However, if I use the Macro shortucut key to run it the first file opens and everything stops. How can I get the rest of the macro to continue executing without stopping when using a shortcut key when the first file opens?
The .csv files are replaced daily so can't embed anything in them.
Sub SaveAsXLSX()
' SaveAsXLSX  Shortcut: Ctrl+Shift+W
    ChDir "T:\Temp"
    Workbooks.Open Filename:= _
        "T:\Temp\File1.csv"
    ActiveWorkbook.SaveAs Filename:= _
        "T:\Temp\File1.xlsx" _
        , FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
    ActiveWorkbook.Close
    Workbooks.Open Filename:= _
        "T:\Temp\File2.csv"
    ActiveWorkbook.SaveAs Filename:= _
        "T:\Temp\File2.xlsx" _
        , FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
    ActiveWorkbook.Close
End Sub
 
    