hellovaras
New Member
- Joined
- Feb 2, 2022
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hello, I have a very basic question. I want the below macro to output an xlsx file, not a macro file. I have tried changing the extension and the FileFormat but the copied file does not open. I get a message that the file types are different. Any and all assistance is appreciated. TIA
Sub Workbook_SaveUp()
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs Filename:="\\XXXvvfile1\market_XXXXX\XXX \Reporting Analyst\Test_File_JLV.xlsm" <- it only works when I use the xlsm extension. Otherwise, the new SaveAs workbook wont open.
Application.DisplayAlerts = True
End Sub
Sub Workbook_SaveUp()
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs Filename:="\\XXXvvfile1\market_XXXXX\XXX \Reporting Analyst\Test_File_JLV.xlsm" <- it only works when I use the xlsm extension. Otherwise, the new SaveAs workbook wont open.
Application.DisplayAlerts = True
End Sub