E
Edward Thrashcort
Why does MS have to make things SO awkward!!
I am trying to parse an internet address from a Word Hyperlink with VBA
Let's say the address is "index.htm#inlineanchor"
No problem
With Selection.Hyperlinks(1)
URL = .Address + "#" + .SubAddress
End With
However, if there isn't a sub-address, the hyperlink object doesn't return a
blank or even a null. Oh no! It returns an error that the subaddress is
not defined!!!!!!
How can I handle this to determine if a subaddress has been defined?
Eddie
I am trying to parse an internet address from a Word Hyperlink with VBA
Let's say the address is "index.htm#inlineanchor"
No problem
With Selection.Hyperlinks(1)
URL = .Address + "#" + .SubAddress
End With
However, if there isn't a sub-address, the hyperlink object doesn't return a
blank or even a null. Oh no! It returns an error that the subaddress is
not defined!!!!!!
How can I handle this to determine if a subaddress has been defined?
Eddie