Thread
: [Solved]
Autotext strings are being stripped of their format when called from VBA
View Single Post
04-20-2012, 07:54 PM
macropod
Windows 7 64bit
Office 2010 32bit
Administrator
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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]
macropod
View Public Profile
Find all posts by macropod