Link to home
Start Free TrialLog in
Avatar of AAMFK
AAMFK

asked on

Excel VBA question

Ok.  I have a column full of hyperlinks in Excel.

I need to find out how to seperate the 'text' from the 'link'

Please help!!!
Avatar of bobbit31
bobbit31
Flag of United States of America image

don't really understand:

    Dim url As String
   
    url = Sheet1.Cells(1, 1) '' this is a hyperlink
    MsgBox url

all i get is text what do you mean by the 'link'


Ok - try this - this is with the 'Selection'.  You can also use it with the 'Worksheet'.


Dim h As Hyperlink

For Each h In Selection.Hyperlinks
    MsgBox h.Name
    MsgBox h.Address
Next


HTH,

Wileecoy.
Avatar of Richie_Simonetti
Hearing for further details...
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any progress AAMFK?
Avatar of AAMFK
AAMFK

ASKER

uh i ended up saving it as a HTML and parsing--

but ill award these points thanks
wileecoy, since an accepted answer can't be reversed i'll post a seperate Q for you here

https://www.experts-exchange.com/questions/20334794/points-for-wileecoy.html

:O)Bruintje