Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
vojo vojo is offline
external usenet poster
 
Posts: 6
Default Creating styles with conditional formating

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

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Tony Jollans Tony Jollans is offline
external usenet poster
 
Posts: 1,308
Default Creating styles with conditional formating

It is possible to define Styled text within a field (by extending the
technique that Cindy shows, perhaps including AutoTexts) but in this case it
would seem to be more complicated than needed.

--
Enjoy,
Tony

www.WordArticles.com

"Cindy M." wrote in message
news:VA.0000150a.9c47fdb4@vistapc...
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 :-)


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
Conditional Formating Daedalus1 Tables 1 December 5th 08 03:07 AM
Conditional Formating Lisa Mazzanti Microsoft Word Help 1 May 16th 08 06:22 PM
Conditional Formating Manny Tables 2 May 28th 07 08:54 PM
styles and formating pane not showing selected styles Mike B Microsoft Word Help 1 April 25th 06 01:53 PM
Conditional merging a field and formating it [email protected] Mailmerge 1 April 7th 06 08:02 PM


All times are GMT +1. The time now is 02:43 AM.

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"