Consulting

Results 1 to 3 of 3

Thread: Solved: AutoText Formatting

  1. #1

    Solved: AutoText Formatting

    Hi, If in Word I create an autotext entry that has formatting it seems to save fine and if I then select that it inserts correctly with the right formatting.

    However, if I insert the autotext through code using:
    [VBA] ActiveDocument.AttachedTemplate.AutoTextEntries("_CVEntry").Insert Where:= _
    Selection.Range[/VBA]

    It inserts, but does not include the formatting.

    Does anyone know how I can get around this?

  2. #2
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    [VBA]
    ActiveDocument.AttachedTemplate.AutoTextEntries("_CVEntry").Insert Where:= _
    Selection.Range, RichText:=True
    [/VBA]

  3. #3
    thanks geekgirl, worked perfectly.

    So easy when you know how

Posting Permissions

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