Re: Get default filename from bookmark content
- From: "arne" <Nomail@xxxxxxxxxxxxx>
- Date: Sat, 3 Sep 2005 20:36:36 +0200
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.
"Jonathan West" <jwest@xxxxxxxx> skrev i melding
news:OIH2SbKsFHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
> Is this a file which has not yet been saved?
>
>
> --
> 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
>
>
> "arne" <Nomail@xxxxxxxxxxxxx> wrote in message
> news:4319c94e$1@xxxxxxxxxxxxxxxxxxxx
>> 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
>>
>> .
>>
>>
>> "Jonathan West" <jwest@xxxxxxxx> skrev i melding
>> news:%230D9bzHsFHA.3596@xxxxxxxxxxxxxxxxxxxxxxx
>>> Put the same text into the Title property of the document.
>>>
>>> ActiveDocument.BuiltInDocumentProperties("Title") = Me.txtSaveasfilename
>>>
>>> --
>>> 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
>>>
>>> "arne" <Nomail@xxxxxxxxxxxxx> wrote in message
>>> news:431974dd@xxxxxxxxxxxxxxxxxxxx
>>>> How can Word2000 suggest the save as filename from the content of a
>>>> bookmark?
>>>>
>>>> This is part of my code from the form.
>>>>
>>>> Dim BMRange As Range
>>>> Set BMRange = ActiveDocument.Bookmarks("mysaveasfilename").Range
>>>> BMRange.Text = Me.txtSaveasfilename
>>>> 'Reinsert the bookmark
>>>> ActiveDocument.Bookmarks.Add "mysaveasfilename", BMRange
>>>>
>>>
>>
>>
>
.
- References:
- Get default filename from bookmark content
- From: arne
- Re: Get default filename from bookmark content
- From: Jonathan West
- Re: Get default filename from bookmark content
- From: arne
- Re: Get default filename from bookmark content
- From: Jonathan West
- Get default filename from bookmark content
- Prev by Date: Re: Putting pictures in a row
- Next by Date: autofill text from Word Master Document
- Previous by thread: Re: Get default filename from bookmark content
- Next by thread: Re: VB Script for commandbutton
- Index(es):
Relevant Pages
|