Propose save file name

A

Anatoli Rejditsch

Hi.

I'm developing an applicaiton, that starts the word, opens a document based
on a template and fill some information in it. Then the user can modify this
document.
If the user wants to save it, the file name in the SaveAs-dialog is
"document.doc"

The question is: how can I set the proposed name of document by my
application?

Thanks a lot.
Anatoli Rejditsch.
 
J

Jay Freedman

Anatoli said:
Hi.

I'm developing an applicaiton, that starts the word, opens a document
based on a template and fill some information in it. Then the user
can modify this document.
If the user wants to save it, the file name in the SaveAs-dialog is
"document.doc"

The question is: how can I set the proposed name of document by my
application?

Thanks a lot.
Anatoli Rejditsch.

Set the Title document property, which will then appear as the suggested
file name. There's a workaround for a bug in this:
http://word.mvps.org/faqs/macrosvba/SetDefFilename.htm

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
A

Anatoli Rejditsch

Thank you very much!
I've spent 4 hours for this issue, until you gave me this hint.
What a f**k.
And it is nearly impossible to find the solution at web, because everyone
just reading the title or just set the title and not the proposed file name.

Greetings,
Anatoli Rejditsch.
 
D

Doug Robbins - Word MVP

Also answered in the other group to which you posted. Please do not post
the same question separately to multiple newsgroups. It wastes everybody's
time answering questions that have already been answered.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
T

Tony Jollans

An easier workaround would seem to be that good old fallback ...

WordBasic.SetDocumentProperty "Title", 0, "My Title"
 
B

Bret Thompson

The work-around posted here dosen't sem to work in Word 2007. I am
attempting to suggest a file name that includes dashes in the name, and it is
not working. The suggested name is trucated at the first dash.
 

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