|
Forum home »
Delegate support and help forum »
Microsoft Excel VBA Training and Help » advanced+excel+courses - Saving a Workbook / calling the Save As menu
advanced+excel+courses - Saving a Workbook / calling the Save As menu
The UK's most regular instructor-led training courses.
Training information: advanced+excel+courses
· Excel courses london
· VBA courses London UK Resolved · Low Priority · Version Standard
Saving a Workbook / calling the Save As menu
by - delegate Candace [2 posts] (2007 Nov 6 Tue, 14:08) Reply
Hi,
I have created a spreadsheet that will be used by the business units for data capture and I have added a "save details" button to the spreadsheet that uses the "Active.WorkBook.Save" functionality.
I have been requested to change this so that the Save As menu is shown. This should allow the user to select where they would like to save the workbook and what they what they would like to call it.
Do you have any advice on how to do this? I have tried the ActiveWorkbook.SaveCopyAs but this also does not seem to work.
Thanks,
Candace
RE: Saving a Workbook / calling the Save As menu
by - trainer Anthony [5 posts] (2007 Nov 8 Thu, 13:24) Reply
Hi Candace:
One thing a lot of people ignore is the fact that you can use Excel's built-in Dialog Boxes within your code. If you want to allow users to select where they save a file, you can give them the 'Save As' box with this code:
Application.Dialogs(xlDialogSaveAs).Show
Hope this helps. Post back if you need more assistance.
Regards,
Tony Gay
|