Consulting

Results 1 to 6 of 6

Thread: Copy Autotext Entries to Normal.dot

  1. #1
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location

    Copy Autotext Entries to Normal.dot

    Attached is a file with autotext entries.
    They are named:
    • myautotextone
    • myautotexttwo
    To manually copy autotext from the attached template to the user's normal.dot would be done manually this way:

    Open (or double-click) the template.
    Hit Tools-Macro-Macros and then click the Organizer button (among other methods to get to the organizer).
    On the right, should now appear normal.dot.
    You select the Autotext tab.
    You copy the two autotext entries over into the normal.dot.
    You close both files and make sure normal.dot is saved...

    How could we automate this so that a company could send something to the user and the autotext entries are added?
    ~Anne Troy

  2. #2
    VBAX Regular JOrzech's Avatar
    Joined
    Jun 2004
    Location
    Upstate New York
    Posts
    83
    Location

    AutoText

    Are you sending the template to this person/entity? If so, there is no need for the autotext to be copied. I'm not understanding why this would be necessary. As you know, no one wants all that stuff in their normal.dot because if their normal.dot becomes corrupt, you lose it all. Please clarify DB.
    Joanne

  3. #3
    VBAX Regular JOrzech's Avatar
    Joined
    Jun 2004
    Location
    Upstate New York
    Posts
    83
    Location

    If you have a global add-in template....

    you can add this line of code to a template, put it in your startup directory, and it will attach the template with all the autotext, styles, macros, etc. attached and readily available:

    [VBA]
    Sub AutoNew()
    With ActiveDocument
    .UpdateStylesOnOpen = False
    .AttachedTemplate = _
    "C:\Documents and Settings\Mom\Application Data\Microsoft\Templates\YourTemplateName.dot" 'change to the PATH and template containing the autotext, etc.
    End With
    End Sub
    [/VBA]

    Although about thinking about it... you may need an AutoExec macro.... but try this first and let us know.


    May work -- I'm still ruminating upon it. But give it a try.
    Joanne

  4. #4
    VBAX Regular village_alchemist's Avatar
    Joined
    Jul 2004
    Location
    Michigan, US
    Posts
    32
    Location
    Quote Originally Posted by JOrzech
    I'm still ruminating upon it.
    Ruminating, now there's a word you don't associate with programming much.

    My in-law's alpacas ruminate a lot, only it comes back up as green spew occasionally. Then they walk around like this:

    Come to think of it though, the VBA display is green....

  5. #5
    VBAX Regular JOrzech's Avatar
    Joined
    Jun 2004
    Location
    Upstate New York
    Posts
    83
    Location
    Too funny village_alchemist! Alpacas??

    Joanne

  6. #6
    VBAX Regular JOrzech's Avatar
    Joined
    Jun 2004
    Location
    Upstate New York
    Posts
    83
    Location

    Green spew...

    I knew what alpacas were but I truly thought you were joking Village_Alchemist since your post said:

    My in-law's alpacas ruminate a lot,
    What a wonderful thing! I love ALL animals... Thanks for the link - they are such amazing sweet (although ruminating ) animals.
    Joanne

Posting Permissions

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