|
| |
Hyperlinks are one of the buggiest parts of Word, and contrary to popular
belief, there are actually three parts to them:
- The displayed text e.g. 'Click here to access \\bnepf5\data'
- The hyperlink in the field code e.g. {HYPERLINK "\\\\bnepf5\\data"}
- An internal hyperlink used by Word, only accessible from program code.
The problem stems from the fact that Word does not correctly keep #2 and #3
synchronized.
So to replace a hyperlink of \\bnepf5\data with \\osrhome\data involves THREE
searches:
| |
Use Find What of: |
and Replace with of: |
Where to Search |
Options |
| 1 |
\\bnefp5\data |
\\osrhome\data |
Body, Header, Footer |
|
| 2 |
\\\\bnefp5\\data (*) |
\\\\osrhome\\data |
Body, Header, Footer |
Inside field codes |
| 3 |
\\bnefp5\data |
\\osrhome\data |
Inside hyperlinks |
|
* Note that backslashes in the filename are ONLY doubled when searching
inside field codes.
|