ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open the SaveAs Dialogbox (https://www.excelbanter.com/excel-programming/421383-open-saveas-dialogbox.html)

vqthomf

Open the SaveAs Dialogbox
 
I am trying to open the SaveAs dialogbox when the user clicks on a
commandbutton. Has anybody managed to do this any help would be much
appreciated.
Regards
Charles

Steve Yandl[_2_]

Open the SaveAs Dialogbox
 
Application.Dialogs(xlDialogSaveAs).Show

Steve



"vqthomf" wrote in message
...
I am trying to open the SaveAs dialogbox when the user clicks on a
commandbutton. Has anybody managed to do this any help would be much
appreciated.
Regards
Charles




Socko

Open the SaveAs Dialogbox
 
I hope this helps. Call one of the built in dialogs.

Sub ShowSaveAsDialog()
Dim myDialog As Dialog
Set myDialog = Application.Dialogs(xlDialogSaveAs)
myDialog.Show
End Sub

Similarly, if you want to use the other 100+ dialog collection, have a
look at the list of dialog collection at : http://www.sockofiles.350.com/dialoglist.txt

I hope this helps

Selva V Pasupathy
For more on Excel, VBA, and other resources
Please visit: http://socko.wordpress.com


All times are GMT +1. The time now is 08:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com