Chiznuggets
New Member
- Joined
- Jun 26, 2019
- Messages
- 8
Hello friends,
I'm trying to save an Excel file with VBA code to the location C:\Users\Work\Desktop\Google Drive.
I am able to successfully do this with
However when I go to change the file format with
the saved file location changes to a different location, C:\Users\Work\Desktop\June Monthly Reports.
Any thoughts on how to fix this problem?
Just to be clear I know the second line of code that I provided is the problem because I stepped through the code one line at a time.
I'm trying to save an Excel file with VBA code to the location C:\Users\Work\Desktop\Google Drive.
I am able to successfully do this with
Code:
ActiveWorkbook.SaveAs ("C:\Users\Work\Desktop\Google Drive\" & varEventName & " " & varDate & " " & varReportType & ".xlsx")
However when I go to change the file format with
Code:
ActiveWorkbook.SaveAs FileFormat:=51
Any thoughts on how to fix this problem?
Just to be clear I know the second line of code that I provided is the problem because I stepped through the code one line at a time.