#1
|
|||
|
|||
Autotext strings are being stripped of their format when called from VBA
Hi,
I'm been having an issue from time to time (not always which is strange) with inserting an Autotext string using VBA. I can insert them fine, but they are stripped of their format (ie bold and italic). When I manually insert them, they look perfect. I insert the autotext string using: ActiveDocument.AttachedTemplate.AutoTextEntries("S tring").Insert _ Where:=Selection.Range Any thoughts? Thanks, J |
#2
|
||||
|
||||
Hi J,
As per Word's VBA Help file, you need to specify the RichText parameter: ActiveDocument.AttachedTemplate.AutoTextEntries("S tring").Insert _ Where:=Selection.Range, RichText:=True
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks Paul...will try...I figured that there must be a parameter to do this but couldn't seem to find it!
|
Tags |
autotext, format |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
excel where is procedure being called from | davids67 | Excel Programming | 1 | 11-18-2011 06:48 AM |
What is this symbol called as? | Franky | Word | 3 | 11-12-2011 08:16 AM |
Removing Character Strings | digitalhecht | Word | 2 | 10-17-2011 12:53 PM |
update style of all strings available between two specific strings | vikrantkale | Word | 1 | 03-28-2011 06:13 PM |
What is this right-click sub-menu called? | wornways | Word | 3 | 08-13-2010 09:17 PM |