Maintaining style formatting in AutoText entries

G

Guest

I created a protected template for our users to fill out. I want them to able
to add a page, if needed, that includes all the text fields/table from the
original page. So I wrote a macro and added a toolbar button which, when
pressed; 1) unlocks the template, 2) places the cursor at the bottom of the
document, 3) creates a new page, 4) pastes the original contents of the
template which I copied into an AutoText entry, and then 5) locks the
template again so the user may tab through the text fields. My problem is
when the table is pasted in from AutoText it loses all the styles
(formatting)... Column headings are no longer centered or in bold, rows are
not the same height as they are in the original table on the first page of
the document, etc. Is there any way to retain style formatting in tables
pasted from AutoText entries?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?dGFtaW5hdG9y?=,
I created a protected template for our users to fill out. I want them to able
to add a page, if needed, that includes all the text fields/table from the
original page. So I wrote a macro and added a toolbar button which, when
pressed; 1) unlocks the template, 2) places the cursor at the bottom of the
document, 3) creates a new page, 4) pastes the original contents of the
template which I copied into an AutoText entry, and then 5) locks the
template again so the user may tab through the text fields. My problem is
when the table is pasted in from AutoText it loses all the styles
(formatting)... Column headings are no longer centered or in bold, rows are
not the same height as they are in the original table on the first page of
the document, etc. Is there any way to retain style formatting in tables
pasted from AutoText entries?
Please show us the macro code, and tell us the version of Word you're working
with.

If you insert the AutoText "by hand", is the formatting retained?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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