Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to find out how to write a macro that brings up the save as dialog
box, lets the user enter in where to save the document as well as the name of the document, then after it's saved continue with the rest of the macro. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
in the VBA help have a look at: application.GetSaveAsFilename -- Regards Frank Kabel Frankfurt, Germany "Menoh" schrieb im Newsbeitrag ... I need to find out how to write a macro that brings up the save as dialog box, lets the user enter in where to save the document as well as the name of the document, then after it's saved continue with the rest of the macro. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim fName as String
' code before the save fname = Application.GetSaveAsFilename() if fName < "False" then activeworkbook.SaveAs fName End if ' code after the save fName will equal "False" if the user hits cancel - not sure what you want to do in that case. Note that the save doesn't occur just by using the dialog. The actuall save is done with Activeworkbook.SaveAs. Also, if you want to silently overwrite an existing file with the selected name Application.Displayalerts = False activeworkbook.SaveAs fName Application.DisplayAlerts = True -- Regards, Tom Ogilvy "Menoh" wrote in message ... I need to find out how to write a macro that brings up the save as dialog box, lets the user enter in where to save the document as well as the name of the document, then after it's saved continue with the rest of the macro. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
Macro Save File (Unique file name) | Excel Worksheet Functions | |||
Macro to save a file as a PDF | Excel Discussion (Misc queries) | |||
Macro to insert values from a file and save another sheet as a .txt file | Excel Programming | |||
Automate open file, update links, run macro, close and save file | Excel Programming |