Put the same text into the Title property of the document.
ActiveDocument.BuiltInDocumentProperties("Title") = Me.txtSaveasfilename

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
Thanks Jonathan, but it does not work, and I am not sure where to place Your
code
I place your code after; ActiveDocument.Bookmarks.Add "mysaveasfilename",
BMRange
I have seen some solutions about naming a doc on
http://word.mvps.org/faqs/macrosvba/SetDefFilename.htm and wonder why I do
not get the correct filename..
regards arne
.
> Put the same text into the Title property of the document.
>
[quoted text clipped - 10 lines]
>> 'Reinsert the bookmark
>> ActiveDocument.Bookmarks.Add "mysaveasfilename", BMRange
Jonathan West - 03 Sep 2005 17:29 GMT
Is this a file which has not yet been saved?

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
> Thanks Jonathan, but it does not work, and I am not sure where to place
> Your code
[quoted text clipped - 23 lines]
>>> 'Reinsert the bookmark
>>> ActiveDocument.Bookmarks.Add "mysaveasfilename", BMRange
arne - 03 Sep 2005 19:36 GMT
The file has not yet been saved. I only want the filename to be set as the
default (suggested name). The user must have the option to save the document
with any name she wants.
> Is this a file which has not yet been saved?
>
[quoted text clipped - 25 lines]
>>>> 'Reinsert the bookmark
>>>> ActiveDocument.Bookmarks.Add "mysaveasfilename", BMRange