Hi Bob,
The GetSaveAsFilename method doesn't actually save the file. It simply provides a dialogue box interface so the user can interact with your application and choose where to save the file. From the helpfile:
Quote:
|
Originally Posted by Excel VBA Helpfile
GetSaveAsFilename Method
Displays the standard Save As dialog box and gets a file name from the user without actually saving any files.
|
Once the user has either specified a file path/name OR pressed the cancel button, you need to check what the method returns:
Quote:
|
Originally Posted by Excel VBA Helpfile
Remarks
This method returns the selected file name or the name entered by the user. The returned name may include a path specification. Returns False if the user cancels the dialog box.
This method may change the current drive or folder.
|
Then, if the user did not cancel, use the workbook object's SaveAs method to save the file.
Hope that helps...