View Single Post
  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.office.developer.vba,microsoft.public.word.tables,microsoft.public.word.vba.general
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Show actual name of file path after you have renamed it

Hi Hornbecky83,

The
single back slashes would not create a link with the table or allow me
to paste a table at all. Why does it matter if there are double back
slashes or not.

This is due to how Word was originally coded, back in the late 1980's.
It was written with C, and in the C-languages a single backslash is an
"Escape character". That means that whatever follows the backslash has a
special significance. You can see that with the switches in Word fields:
a switch is always preceded by a backslash to indicate it is a switch,
so Word should do something special, depending on the character
following the backslash.

In order to indicate that you want to use a backslash, it therefore
needs to be doubled. So paths in Word fields always require double
backslashes.

Or add double back slashes to my
privious arrayPath(i,j) method?

Sure you can double the backslashes. As long as you don't need to
support Word 97, the simplest way is with the Replace function. That
would look something like this

filePath = Replace(filePath, "\", "\\")

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)