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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As Dialog box in Word 2000

Status
Not open for further replies.

jck15243

Programmer
May 23, 2003
2
US
I was just wondering if anyone knew how to have a default value in the save as dialog box form Word using VBA. The way it comes up just using Dialogs(wdFileDialogSaveAs).Show has the current document name in it, and I don't want people to accidentally overwrite the document when they click on my button. I have been looking for many different ways but to no avail. I can get it to work in Excel with no problem but the same way won't work in Word, so I'm kinda stuck.
 
Set MyDialog = Dialogs(wdDialogFileSaveAs)
MyDialog.Name = NewNameHere
MyDialog.Show


See the following thread:

thread707-556397
 
thanks, i modified the previous code to make it work, i just got hung up because .name isn't a property of a dialog box, as it doesn't pop up in the list dialog. is typed. it works to set it though, strange.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top