I have tried so many websites and combinations but I can not create a VBS script to open my CsV file and then save it as a Xlsm file. I did get it to rename the file but the renamed file was deemed corrupt and would not open. In Excel you can open a CSV and do a save as Xlsm and it works. I want to automate this process with the sccript below. This is Excel 2013. Option Explicit
Dim xlApp, xlBook
Set xlApp = CreateObject("Excel.Application")
xlApp.DisplayAlerts = False
Set xlBook = xlApp.Workbooks.Open("c:\1Datadump\datadump.csv")
xlApp.Application.Visible = True
ActiveWorkbook.SaveAs Filename:="C:\1Datadump\datadump.xlsm"
xlApp.Workbooks.close
xlApp.Application.Quit
Thank you for any suggestions.