Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change "SaveAsDialog" default location and disable cancel butto

Status
Not open for further replies.

YACHTIE

Technical User
Feb 17, 2004
77
CA
Hi all,
I have a macro that runs on the Sub Document_Open to try to remind the user to save the document (Word 2002) before they start editing it. I have found the following code that does this nicely, however I would like to disable the "Cancel" button and have the dialog window point to the user's My Documents" folder instead of the location the form was opened from.
Code:
Sub ShowSaveAsDialog()
    Dim dlgSaveAs As Dialog
    Set dlgSaveAs = Dialogs(wdDialogFileSaveAs)
    dlgSaveAs.Show
End Sub

Thanks
 
You may consider using the FileDialog object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top