Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    103
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Insert Dialog Box Macro (Word 97 SR2)

    Hello everyone,

    I created a fully-formatted document in Word which contains blocks of text I use frequently, e.g., signatures, table formats, repetitive text, etc. I then marked each block of text with a Word bookmark naming each block of text uniquely, and saved the document. When I want to pick one of these block of text I simply select Insert, File, and in the

  2. #2
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Insert Dialog Box Macro (Word 97 SR2)

    Try this (amateur) macro. It calls up an input box for the name of the bookmark, then inserts the bookmarked section.
    <pre>Sub InsrtFile()
    Dim Message, Title, Default, Bmark
    Message = "Enter Bookmark name" ' Set prompt.
    Title = "Insert Bookmarked Entry" ' Set title.
    Default = "" ' Set default.
    Bmark = InputBox(Message, Title, Default)
    Selection.InsertFile FileName:="c:documentsmydoc.doc", Range:=Bmark, _
    ConfirmConversions:=False, Link:=False, Attachment:=False
    End Sub
    </pre>

    Note: change the "c:documentsmydoc.doc" to the pathh/name of your file.
    If there is one bookmark you use quite often, enter its name between the inverted commas after Default =

    I can't remember how to allocate a shortcut after the macro has been created - try recording one and assign F4, then replace it with the above.

    HTH

  3. #3
    2 Star Lounger
    Join Date
    Jun 2001
    Posts
    103
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Insert Dialog Box Macro (Word 97 SR2)

    Thank you so very much for your reply. The macro works beautifully. This will save me so much time.

    Just in case anyone wants to attach a macro to a keystroke:

    1. Click on Tools, Customize, Keyboard.
    2. Select Macros under Categories.
    3. Select the macro name to be assigned to a keystroke under the Macros list.
    3. Press the keystroke combination wanted (e.g., F4) Under the Press New Shortcut Key.
    4. Click on Assign.
    5. Click on Close twice to go back to the document.

    Again, thank you so much.

    Vitoria

  4. #4
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,048
    Thanks
    124
    Thanked 119 Times in 116 Posts

    Re: Insert Dialog Box Macro (Word 97 SR2)

    It makes sense to me and is the method that I use for my to have updatable components in letterhead forms. However, you don't need to keep AutoText in normal.dot to have it available in all your documents. Take a look into <A target="_blank" HREF=http://www.addbalance.com/usersguide/templates.htm#Global> global templates (a/k/a Add-Ins) for this. For most purposes, I find AutoText more useful. I used the bookmarked components in the letterhead system to try to put together something that was easily modified without understanding Word very well.

    Probably the most elegant use of AutoText is the AutoText <A target="_blank" HREF=http://www.mvps.org/word/FAQs/TblsFldsFms/AutoTextList.htm> drop-down menus</A>.

    Hope this helps.
    Charles Kyle Kenyon
    Madison, Wisconsin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •