Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

advanced+excel+courses - saving workbook calling

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

ResolvedVersion Standard

Candace has attended:
Excel VBA Intro Intermediate course

Saving a Workbook / calling the Save As menu

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

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

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Copying Values Without Formulas in Excel 2010

If you want to copy the contents of a cell but don't want to copy the formula with it then use the following simple method:

Press Ctrl+C to copy the values in the cell. On the Home tab, click Paste and then click Paste Values.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.2 secs.