Hi Cindy,
I am not using any hidden font formatting.
As described, I am using field code "ProjType". And I am using it in the
foll. format
in my document
{ if {docproperty"ProjType"} = "SW" "
<table 1>
<table 2>
"}
{ if {docproperty"ProjType"} = "HW" "
<table 3>
<table 4>
"}
So, using the properties tab , I assign the value for "ProjType" as SW or HW.
Now when I update the fields, I see table 1, 2 if the ProjType is SW
and I see table 3,4 if it is HW.
But my TOC seems to display all the tables irrespective of the selection and
also displays extra entries
eg.
1.1.1.............................26
If you are referring to some other method of hiding/selecting the tables, do
let me know
Regards
Sandeep
> Hi =?Utf-8?B?c2FuZGVlcA==?=,
>
[quoted text clipped - 30 lines]
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
Cindy M. - 29 May 2008 09:46 GMT
Hi =?Utf-8?B?c2FuZGVlcA==?=,
> I am not using any hidden font formatting.
>
> As described, I am using field code "ProjType". And I am using it in the
> foll. format
> in my document
>
You didn't say explicitly HOW the tables were being displayed/hidden. You've
posted in the VBA (macro) forum, so I was assuming you were using VBA code to
determine what is displaying and what is not. My reply was based on that
assumption.
On re-reading, I see that you're trying to use an IF field. There's nothing VBA
involved in your question. The more proper place to ask this would have been
the word.mailmerge.FIELDS newsgroup.
I believe what you're seeing is a result of how the TOC field searches for
information. The captions are in the document, so it's picking them up. It's
irrelevant whether they're in the "false" section of an IF field. SEQ fields in
all parts of an IF field also update in sequence.
I think you may have to redesign what you're doing. Perhaps work with two sets
of IF statements: one for the caption TEXT and one for the table that's
displayed. IOW, the paragraph(s) for the captions are always displayed, just
varied text.
> { If {docproperty"ProjType"} = "SW" "
>
[quoted text clipped - 21 lines]
> If you are referring to some other method of hiding/selecting the tables, do
> let me know
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 :-)