Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel,microsoft.public.excel.programming,microsoft.public.office.developer.vba,microsoft.public.word.tables,microsoft.public.word.vba.general
|
|||
|
|||
![]()
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 :-) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I get Office 2007 to show me the full path of a file? | New Users to Excel | |||
Show Path name for a file | Excel Discussion (Misc queries) | |||
How to show file path in formual bar when linking workbooks? | Excel Discussion (Misc queries) | |||
show file path in Print footers | Excel Programming | |||
Link path not updating when renamed | Excel Discussion (Misc queries) |