bigmacfann
New Member
- Joined
- Aug 26, 2005
- Messages
- 48
Hello, I have been working on a macro to save a file with a custom filename but I can't seem to find a way to put the .xlsx extension on the end of the filename.
If I have "120" in cell G5, ideally, the filename will be "RFI 120.xlsx" but currently all that shows up is "RFI 120" and I do not have the option to select .xlsx in the 'Save As Type' drop down. Any help would be greatly appreciated! Thank you.
Code:
Dim sFile As String
sFile = Application.GetSaveAsFilename("RFI " & Range("G5").Text)
If I have "120" in cell G5, ideally, the filename will be "RFI 120.xlsx" but currently all that shows up is "RFI 120" and I do not have the option to select .xlsx in the 'Save As Type' drop down. Any help would be greatly appreciated! Thank you.