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
[email protected]
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?
 
Top