What's wrong with this IncludeText?

  • Thread starter Thread starter Stephen Glynn
  • Start date Start date
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
 
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" ?
 
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
 
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
 
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.
 
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.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
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
 
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
 
You are welcome.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
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.
 
Back
Top