What's wrong with this IncludeText?

S

Stephen Glynn

When I use CTRL-f9 to insert the curly brackets {} and type INCLUDETEXT
"C:\\Documents and Settings\\Owner\\My Documents\\InsetTextDemo.doc" \*
MERGEFORMAT

I get Error! Cannot open file.

I've doublechecked the long file name and it's certainly accurate.

Steve
 
B

Bill Le May

Stephen Glynn said:
When I use CTRL-f9 to insert the curly brackets {} and type INCLUDETEXT
"C:\\Documents and Settings\\Owner\\My Documents\\InsetTextDemo.doc" \*
MERGEFORMAT

I get Error! Cannot open file.

I've doublechecked the long file name and it's certainly accurate.

Should "Inset" be "Insert" ?
 
S

Stephen Glynn

Bill said:
Should "Inset" be "Insert" ?

Duh! Well, yes, it should have been but I've just rechecked and that's
how I'd misspelled the original file name (I took both the path and the
file name from the properties window by cutting and pasting).

I've tried it with another file name in the same folder and it can't
open that either.

Steve
 
S

Stephen Glynn

And just to add to the confusion I've trashed trashed the original
document into which I wanted to InsertText, used exactly the same syntax
in another one, and it worked perfectly.

One of life's mysteries.

Steve
 
B

Bill Le May

Stephen Glynn said:
Duh! Well, yes, it should have been but I've just rechecked and that's
how I'd misspelled the original file name (I took both the path and the
file name from the properties window by cutting and pasting).

Sorry, just grasping at straws
I've tried it with another file name in the same folder and it can't
open that either.

If I mis-spell the file name the error message I get is "Error! Not a valid
filename." Since you're sure of the path I wonder if there is a permission
issue of some sort at work.
 
C

Charles Kenyon

Try using:
Insert > File
Select your file.
Click on the little down triangle on the Insert button and tell it to insert
as link.

I would add a \! switch instead of the \* MERGEFORMAT switch. This keeps
fields in the original document from being updated in the new document.
(This is usually what you want, but not always.

You may want to take a look at the IncludeText tutorial at
http://addbalance.com/word/download.htm.
 
S

Stephen Glynn

Bill said:
Sorry, just grasping at straws




If I mis-spell the file name the error message I get is "Error! Not a valid
filename." Since you're sure of the path I wonder if there is a permission
issue of some sort at work.
As I said in the post above I cured the problem by junking the target
file and starting again. It may, I suspect have been something to do
with my originally misspelling the file name -- IIRC I forgot to use the
..doc suffix -- which would, from what you say, have given me that error
message. Then I'm not sure what would have happened by somehow the
field wasn't updating properly. I can't really think what else would
have caused the problem and I don't want to try to replicate it.

Many thanks for your help -- the "Duh!" was aimed at me, btw; I thought
"I can't have been so stupid" then I realised I had been and even then I
realised it still wasn't the cause.

Thanks for you help.

Steve
 
S

Stephen Glynn

Charles said:
Try using:
Insert > File
Select your file.
Click on the little down triangle on the Insert button and tell it to insert
as link.

I would add a \! switch instead of the \* MERGEFORMAT switch. This keeps
fields in the original document from being updated in the new document.
(This is usually what you want, but not always.

You may want to take a look at the IncludeText tutorial at
http://addbalance.com/word/download.htm.


Many thanks. Thanks, too, for your excellent site -- I use it a great
deal (though I hadn't explored the IncludeText tutorial, which I've just
downloaded) and find it invaluable.

Steve
 
B

Bill Le May

Stephen Glynn said:
As I said in the post above I cured the problem by junking the target
file and starting again. It may, I suspect have been something to do
with my originally misspelling the file name -- IIRC I forgot to use the
.doc suffix -- which would, from what you say, have given me that error
message. Then I'm not sure what would have happened by somehow the
field wasn't updating properly. I can't really think what else would
have caused the problem and I don't want to try to replicate it.

Oops, didn't see your other post before I sent mine. Glad you got around
the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top