ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Command Button Prompt Save As? (https://www.excelbanter.com/excel-discussion-misc-queries/89068-command-button-prompt-save.html)

Rich

Command Button Prompt Save As?
 
Is it possible to have a command button or Macro that can prompt the
user the Save As Dialog ?


Bob Umlas, Excel MVP

Command Button Prompt Save As?
 
Sure -
Sub MySave()
Application.Dialogs(xlDialogSaveAs).Show
End Sub

"Rich" wrote:

Is it possible to have a command button or Macro that can prompt the
user the Save As Dialog ?



Rich

Command Button Prompt Save As?
 
Thank you! I'm extremely new.

How about a some sort of close after the save is made?

Private Sub CommandButton1_Click()
Application.Dialogs(xlDialogSaveAs).Show
Application.Close??
End Sub


Rich

Command Button Prompt Save As?
 
Found it!
Application.Quit



All times are GMT +1. The time now is 06:42 PM.

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