Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
taminator
 
Posts: n/a
Default Maintaining style formatting in AutoText entries

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?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M -WordMVP-
 
Posts: n/a
Default Maintaining style formatting in AutoText entries

Hi ?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 :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot print AutoText entries Jack Page Layout 0 December 9th 05 03:27 AM
Character style applied loses italic / bold formatting Mark@nature Microsoft Word Help 1 November 10th 05 02:25 PM
Formatting In Use (Style and Formatting Task Pane) Slow + Incorrect? Paul Formatting Long Documents 6 November 8th 05 10:36 PM
HOW DO YOU TURN OFF THE FORMATTING IN AUTOTEXT ENTRIES Daisyxx Microsoft Word Help 2 May 20th 05 05:59 AM
Apply Style but keep direct formatting? Stefan Blom New Users 2 November 28th 04 11:30 PM


All times are GMT +1. The time now is 09:52 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"