How to set the default suggested filename to be displayed by the Save As dialog the first time a use

K

Kenan Kilictepe

How to set the default suggested filename to be displayed by the Save As
dialog the first time a user saves a new document?

With Dialogs(wdDialogFileSummaryInfo)
.Title = "My FileName"
.Execute
End With

doesn't work because my file name must contain "_"

something like "Docno_21_spec_123.doc"



Thanks

Kenan
 
J

Jean-Guy Marcil

Kenan Kilictepe was telling us:
Kenan Kilictepe nous racontait que :
How to set the default suggested filename to be displayed by the Save
As dialog the first time a user saves a new document?

With Dialogs(wdDialogFileSummaryInfo)
.Title = "My FileName"
.Execute
End With

doesn't work because my file name must contain "_"

What version of Office and Windows are you using?
Your code, as posted, worked as expected on my machine (Windows XP SP2 and
Office 2003 SP2)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
K

Kenan Kilictepe

Hi,
if you don't use any "_" character then it works.
But if you use , then it doesnt.
For example if you want to set filename as "DOC_001_V01.doc"
then suggested name will be "DOC.doc".
Any suggestion?
 

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