View Single Post
 
Old 05-10-2016, 01:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by vince692 View Post
In order to understand .Hyperlinlk is an array of all selected Word hyperlinks ?
No, .Hyperlink is a Hyperlink object - .Hyperlinks is the Hyperlinks collection and .Hyperlinks(#), where # is a number, refers to a particular Hyperlink object from the Hyperlinks collection.
Quote:
Originally Posted by vince692 View Post
Is there a way to work with it or should i create a new variable as myarray() ?
Well, it's quite easy to loop through all the Hyperlink objects in the Hyperlinks collection, which is basically what your original code was doing, but you need to explain what the loop is supposed to achieve - do you just want to get a listing (which your original code does - then sends it to a message box), or do you want to process each hyperlink as it's found, or even do both?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote