View Single Post
  #2   Report Post  
Posted to microsoft.public.word.tables
Cindy M -WordMVP-
 
Posts: n/a
Default How can I implement a specific text style within a table?

Hi ?B?TWljaGFlbEI=?=,

I have the below macro which reformats tables for me when certain criteria
is met. I need to implement a section into each condition that would set the
text style to €śTable Paragraph 1€ť for all the text within the table. It
would be ideal to do this without removing any BOLDED text that currently
exists within the cells, but I know this may be impossible. My end result is
to have all the text within my tables be formatted with the €śTable Paragraph
1€ť style although I do have several hundred cells where the first sentence is
bolded. Maybe it is best to do this one at a time..?

Well, in general terms, if you apply a paragraph style to bolded text, the bolding
*might* be retained. It's a function of the percentage of text that's been
formatted directly. In a quick test, this retained the bold applied to text in a
table:
oTble.Range.Style = "My style"

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
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 :-)