Default filename when saving a document?

I

IvanDr

I currently have a document which is a template (.dot).

When you open the template, it give it a name "Document 1" or similar.

When you go to save the document, it adds the first couple of letters from
the start of the document for a Suggested Filename.

What i would like to do is have the suggested filename be automatically
changed depending on what was entered through the forms.

Does anyone know how this could be done?
 
D

Doug Robbins - Word MVP

What sort of Forms? What control or FormField is it that contains the
string that you want to use as the filename

But the code to use is"

With Dialogs(wdDialogFileSaveAs)
.Name = [some data from your form]
.Show
End With

And BTW what part of Microsoft Technical Support do you work in?
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top