Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 22 Sep 2008 16:03:01 -0700,    group: microsoft.public.word.vba.general        back       


Field - Control the text that appears or not appears   
Hello


I have a field like this: {SET seetext “1}
And I have many field like this : {IF {REF seetext }=”1”  “text to appear”  
“”}
When I put the first field to : SET  seetext “0” 
I hide the text “text to appear” in my word document. The problem is if 
“text to appear” is a Title numbered:
1     “text to appear”
1.1  “text to appear”
2     “text to appear”

It’s a problem because the numbers don’t disappear and when I put SET 
seetext “0” they look like this:
1     
1.1  
2     

And I want the numbers to disappears because I need to control the text with 
just a change in the variable seetext.

Anybody can help me with a trick or a different solution for my objective?
Tanks in advance
date: Mon, 22 Sep 2008 16:03:01 -0700   author:   Jorge mst

Re: Field - Control the text that appears or not appears   
Hi Jorge,

You need to put the whole paragraph into your IF test. In effect, that results in the field being attached to the following 
paragraph, but that's of no great consequence.

-- 
Cheers
macropod
[MVP - Microsoft Word]


"Jorge mst"  wrote in message news:24BC3F78-92CB-4825-B167-436605F2586D@microsoft.com...
> Hello
>
>
> I have a field like this: {SET seetext “1}
> And I have many field like this : {IF {REF seetext }=”1”  “text to appear”
> “”}
> When I put the first field to : SET  seetext “0”
> I hide the text “text to appear” in my word document. The problem is if
> “text to appear” is a Title numbered:
> 1     “text to appear”
> 1.1  “text to appear”
> 2     “text to appear”
>
> It’s a problem because the numbers don’t disappear and when I put SET
> seetext “0” they look like this:
> 1
> 1.1
> 2
>
> And I want the numbers to disappears because I need to control the text with
> just a change in the variable seetext.
>
> Anybody can help me with a trick or a different solution for my objective?
> Tanks in advance
>
date: Tue, 23 Sep 2008 13:54:00 +1000   author:   macropod lid

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us