![]() |
|
|
|
#1
|
||||
|
||||
|
It isn't immediately apparent how those three differ and you would probably need to ask an old MS engineer why there was once a need for .Address and .AddressOld. It appears that they all stay aligned but only one is editable via vba - both .AddressOld and .Name are read-only properties which change their values by changing .Address. Code:
Sub aa() Dim aHL As Hyperlink Set aHL = ActiveDocument.Hyperlinks(1) aHL.Address = "Hi mum" Debug.Print aHL.AddressOld 'a read only property Debug.Print aHL.Name 'a read only property End Sub HTML Code:
<a name="hello">
By extension, I would hypothesize that .AddressOld comes into play when saving the Word file in a particular file format like RTF.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
Thank you Andrew.
.Address it is for me then. I must apologize. I am using Word2003, and since that is so out-of-date (as am I) that might have made a difference. I appreciate your advice, and rather suspect that some inexplicable parts of Word2003 are due to parts of the product being rushed out of the door. Cheers, and thanks again. Chris |
|
| Tags |
| field code hyperlink |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
can you batch edit hyperlink address syntax?
|
Dane Cole | Word | 3 | 02-19-2019 02:49 PM |
How to extract selected hyperlink address to clipboard?
|
poetofpiano | Word VBA | 8 | 02-18-2018 07:17 PM |
| Hyperlink formula returning 'invalid site address' | MarkH | Excel | 0 | 12-26-2015 10:43 AM |
| Cant unformat email address hyperlink in Excel the way HELP says I can | tomseeley | Excel | 11 | 01-24-2014 05:50 PM |
| Hyperlink address fields from Excel | BongoBill | Word | 0 | 04-13-2010 04:27 AM |