Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Nicole Knapp Nicole Knapp is offline
external usenet poster
 
Posts: 8
Default Using IF and INSERTTEXT to add page to original document

I have read the thread linked at the bottom of this post with interest
because I am trying to do something similar, though (I think) more simply.

I have a document that uses a mail merge. I created the IF statement, with
the INSERTTEXT field and a next page break. But it will not open the file.

The file is buried pretty deep on a network server - but in the same folder
as the original document.
Both documents and folders leading to the documents have spaces in their
filenames. I tried replacing the spaces with underscores - but no luck.

This is my statement:
{IF {MERGEFIELD course} = €śCourse D€ť "{INCLUDETEXT
"J:\\Dept\\staff\\2009\\letter_Page_3.doc"}" ""}

I am using the letter drive, not the network drive name.
Thanks
Nik




http://www.microsoft.com/office/comm...7-dfc75769e8be
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Using IF and INSERTTEXT to add page to original document

The trouble with the construciton { IF something { INCLUDETEXT } }

is that when Word merges (say to a new document), it does not actually
"expand" the INCLUDETEXT - it just leaves the field in there. So you
should be able to select the output document (e.g. control-A) and press
F9 to update all the fields in it. If that does everything you need, I'd
carry on doing it that way and ignore the rest of this. If not, first of
all I'd check that

{INCLUDETEXT "J:\\Dept\\staff\\2009\\letter_Page_3.doc"}

on its own does what you expect

That's one reason why the conversation you referenced suggests doing it
"the other way around", i.e. using

{ INCLUDETEXT "text and fields that make up the full path name of the
file to include" }

In this case, you could try something like

{ INCLUDETEXT "{ IF "{ MERGEFIELD course }" = €śCourse D€ť
"J:\\Dept\\staff\\2009\\letter_Page_3.doc" "the path name of a file
with no text" }" }

however you may find that you need a bit more than that.

Peter Jamieson

http://tips.pjmsn.me.uk

Nicole Knapp wrote:
I have read the thread linked at the bottom of this post with interest
because I am trying to do something similar, though (I think) more simply.

I have a document that uses a mail merge. I created the IF statement, with
the INSERTTEXT field and a next page break. But it will not open the file.

The file is buried pretty deep on a network server - but in the same folder
as the original document.
Both documents and folders leading to the documents have spaces in their
filenames. I tried replacing the spaces with underscores - but no luck.

This is my statement:
{IF {MERGEFIELD course} = €śCourse D€ť "{INCLUDETEXT
"J:\\Dept\\staff\\2009\\letter_Page_3.doc"}" ""}

I am using the letter drive, not the network drive name.
Thanks
Nik




http://www.microsoft.com/office/comm...7-dfc75769e8be

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Nicole Knapp Nicole Knapp is offline
external usenet poster
 
Posts: 8
Default Using IF and INSERTTEXT to add page to original document

Thanks - the Ctrl-F9 on the file name seemed to work.

Now I just need to get the formatting correct so that it puts "Page 3" on
page 3 and not partially on Page 2 & then to Page 3.

I believe I got the gist of that in the other thread.

"Peter Jamieson" wrote:

The trouble with the construciton { IF something { INCLUDETEXT } }

is that when Word merges (say to a new document), it does not actually
"expand" the INCLUDETEXT - it just leaves the field in there. So you
should be able to select the output document (e.g. control-A) and press
F9 to update all the fields in it. If that does everything you need, I'd
carry on doing it that way and ignore the rest of this. If not, first of
all I'd check that

{INCLUDETEXT "J:\\Dept\\staff\\2009\\letter_Page_3.doc"}

on its own does what you expect

That's one reason why the conversation you referenced suggests doing it
"the other way around", i.e. using

{ INCLUDETEXT "text and fields that make up the full path name of the
file to include" }

In this case, you could try something like

{ INCLUDETEXT "{ IF "{ MERGEFIELD course }" = €śCourse D€ť
"J:\\Dept\\staff\\2009\\letter_Page_3.doc" "the path name of a file
with no text" }" }

however you may find that you need a bit more than that.

Peter Jamieson

http://tips.pjmsn.me.uk

Nicole Knapp wrote:
I have read the thread linked at the bottom of this post with interest
because I am trying to do something similar, though (I think) more simply.

I have a document that uses a mail merge. I created the IF statement, with
the INSERTTEXT field and a next page break. But it will not open the file.

The file is buried pretty deep on a network server - but in the same folder
as the original document.
Both documents and folders leading to the documents have spaces in their
filenames. I tried replacing the spaces with underscores - but no luck.

This is my statement:
{IF {MERGEFIELD course} = €śCourse D€ť "{INCLUDETEXT
"J:\\Dept\\staff\\2009\\letter_Page_3.doc"}" ""}

I am using the letter drive, not the network drive name.
Thanks
Nik




http://www.microsoft.com/office/comm...7-dfc75769e8be


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
How do I restore original page setup for Word? Su2girls Page Layout 4 August 6th 09 05:48 PM
INSERTTEXT field help John Microsoft Word Help 3 December 16th 08 09:56 PM
merged document does not contain menu item from original document grf Mailmerge 4 September 23rd 08 05:29 AM
How to print your page as it looks on the original. jamiediann Page Layout 1 March 21st 06 12:18 AM
Merging data with INSERTTEXT and MERGEFIELDs James Mailmerge 7 February 9th 06 01:14 PM


All times are GMT +1. The time now is 07:33 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"