INCLUDETEXT field where foldernames have spaces

J

Jules

I'm inserting an INCLUDETEXT field into an IF statement.

e.g. if the bookmark says "Peter", then add text from a document,
otherwise do this...

{if {bookmark}="xxx" "{includetext
C:\\foldername\\foldername\\document.doc}" "otherwise do this"}

But it only seems to work when the foldernames are one word. I have a
folder called "Workflow documents" where I need to put the
document.doc and renaming it will cause all sorts of mither to other
linked documents, so I'd rather not. Any ideas how I get the space
into the equation? i've tried using ~ but it didn't work.

Thanks
Jules
 
G

Graham Mayor

Put speechmarks around the path!
{includetext "C:\\foldername\\foldername\\document.doc"}

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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