Richard123
New Member
- Joined
- Feb 22, 2006
- Messages
- 26
I want to attach some code to a button in an Excel worksheet so that a user is prompted to save the file but can choose filename and filepath. I am using the following code:
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Microsoft Excel Office Workbook (*.xls), *.xls")
This code goes through the motions of opening the 'File/Save As' dialog box but when you choose location and filepath it doesn't actually save the document anywhere!
Any thoughts?
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Microsoft Excel Office Workbook (*.xls), *.xls")
This code goes through the motions of opening the 'File/Save As' dialog box but when you choose location and filepath it doesn't actually save the document anywhere!
Any thoughts?