Mel Smith
Well-known Member
- Joined
- Dec 13, 2005
- Messages
- 1,041
- Office Version
- 365
- Platform
- Windows
I am trying include code to Save As .xlsm but it doesn't save a usable file. It saves the file as intended but not as Excel.xlsm or anything else. In fact the newly saved file cannot be opened...
The code I have used is:
Dim Fname As String
Fname = ActiveWorkbook.Name & Format(Date, "ddmmyy")
ActiveWorkbook.SaveAs "C:\Users\melsm\Documents" & Fname, 52
Is there anything missing from my code or is there another way to achieve what I'm trying to do?
Many thanks.
Mel
The code I have used is:
Dim Fname As String
Fname = ActiveWorkbook.Name & Format(Date, "ddmmyy")
ActiveWorkbook.SaveAs "C:\Users\melsm\Documents" & Fname, 52
Is there anything missing from my code or is there another way to achieve what I'm trying to do?
Many thanks.
Mel