A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Another "IF" field question



 
 
Thread Tools Display Modes
  #1  
Old March 4th, 2009, 07:14 PM posted to microsoft.public.word.newusers
book_worm71[_2_]
external usenet poster
 
Posts: 12
Default Another "IF" field question

Stefan was kind enough to find a workaround for my previous "IF" issue, but
this one seems trickier.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the real
headings.

For example, there will be 10 lines that say 1.1........page# (with no
heading listed), and then the real 10 headings listed 1.1 - 1.10.

My code is as follows:

{if value="content" {includetext "document.doc"}

Any help would be appreciated, thanks.

  #2  
Old March 4th, 2009, 07:17 PM posted to microsoft.public.word.newusers
book_worm71[_2_]
external usenet poster
 
Posts: 12
Default Another "IF" field question

Forgot the final bracket, my code is :{if value="content" {includetext
"document.doc"}}

Thanks in advance for any help.

"book_worm71" wrote:

Stefan was kind enough to find a workaround for my previous "IF" issue, but
this one seems trickier.

I'm using IncludeText to insert chapters into my main document. One of the
chapters has it's own TOC, for the level 2 elements that it contains:

{TOC \o "2-2"}

When I simply use IncludeText to insert the file, the TOC appears and
updates perfectly. However, if I use an IF field around the IncludeText, I
get a bunch of blank headings that show up in the TOC right before the real
headings.

For example, there will be 10 lines that say 1.1........page# (with no
heading listed), and then the real 10 headings listed 1.1 - 1.10.

My code is as follows:

{if value="content" {includetext "document.doc"}

Any help would be appreciated, thanks.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.