fumei
Wed Apr 02 13:10:07 PDT 2008
Or, via code:
AttachedTemplate.AutoTextEntries("myt").Insert _
Where:=Selection.Range
with the assumption the AutoText entry is to go at the Selection....which of
course it does not. For example:
AttachedTemplate.AutoTextEntries("myt").Insert _
where:=ActiveDocument.Sections(3) _
.Headers(wdHeaderFooterEvenPages).Range
would insert the AutoText entry (your table) into the range of the Even Page
headers of Section 3
fumei wrote:
>Absolutely!
>
>1. Make your table
>2. Select it
>3. Alt-F3 (or Insert > Autotext > New) and give it a name, say myt - for my
>table
>
>Done.
>
>You can delete the current table, if you want. It is only there in order to
>create it for the AutoText.
>
>Now whenever you want that table, type: myt and press F3
>
>Voila! Your table.
>
>>Create the table as an autotext entry and have your macro insert that.
>>
>[quoted text clipped - 3 lines]
>>> Hope this makes sense
>>> Thanks
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/200804/1