Retain Format when calling Autotext

M

Mickey

Hi,
I have written a macro that calls an autotext. Works fine except I lose the
formatting, i.e, tabs, font size, bold, ect. Is there a way around this.

Thanks,
Mickey
Word 2000
 
J

Jean-Guy Marcil

Mickey was telling us:
Mickey nous racontait que :
Hi,
I have written a macro that calls an autotext. Works fine except I
lose the formatting, i.e, tabs, font size, bold, ect. Is there a way
around this.

Thanks,
Mickey
Word 2000

What code are you using to insert the Autotext entries?

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
M

Mickey

I'm using the following code:

Selection.Paragraphs.TabStops.ClearAll
Selection.ParagraphFormat.TabStops.ClearAll
Selection.Paragraphs.TabStops(InchesToPoints(1.25)) _
.Alignment = wdAlignTabLeft
Selection.Paragraphs.TabStops(InchesToPoints(6.5)) _
.Alignment = wdAlignTabRight


Selection.Collapse Direction:=wdCollapseEnd
NormalTemplate.AutoTextEntries("QPace").Insert _
Where:=Selection.Range
 
J

Jay Freedman

NormalTemplate.AutoTextEntries("QPace").Insert _
Where:=Selection.Range, RichText:=True

If you put the cursor on the method name (.Insert) and press F1, you
get the Help topic about that method, which explains the optional
RichText argument.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top