View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Creating styles with conditional formating

Hi vojo,

I can't think of any way to do this. I don't think there are any fields that
apply styles. Fields can only reference text that has a style applied. Best
that occurs to me is to use an IF field that checks the Variable and displays
text according to that property.

{ IF {DocVariable abc}="on" "Show all this text" "" }

What I want to do is to create a style such that a global variable (in the
custom template) defines some formating...namely whether font is hidden or
shown.
Variable in the doc template

I am ok with idea of an if true style x else style y but dont know how to
make a style in word that does this (without manually typing all this in).
Ie would like be able to place cursor and select style.

I am ok with two styles: a field / bookmark for hidden on....and a
fied/bookmark for hidden off

Would like to stay away from VBA on this


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