Re: Get default filename from bookmark content

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>>>>
>>>
>>
>>
>


.



Relevant Pages

  • Re: Adding a serial number to a form
    ... >>> Regards ... >>> Please reply to the newsgroup ... >>> Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org ...
    (microsoft.public.word.vba.general)
  • Re: Keep entire section in the same page
    ... >>> Regards ... >>> Please reply to the newsgroup ... >>> Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org ...
    (microsoft.public.word.vba.general)
  • Re: Getting Excel file properties Using Outlook
    ... Viele Gruesse / Best regards ... Michael Bauer - MVP Outlook ... This would mean I could add the correct filename into the ...
    (microsoft.public.outlook.program_vba)
  • Re: CameraCaptureDialog + OMNIA
    ... Best regards, ... We are using Samsung Omnia i900... ... it works fine but it didn't return the filename for me. ... If you know how to work with Omnia's camera in C# or where can I find working camera API please help me. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Check or a file exist give wrong result
    ... I used the solution send in by tinyjack before you send in your solution. ... When I psot my reply I did not notice that you had send another solution to. ... filename, but still it is strange to me that if I ask for Filename = ... Best regards, ...
    (microsoft.public.excel.programming)