I've searched on this and found multiple like posts, but cannot get anything to work for me. I am a total novice when it comes to VB, but can usually muddle through when given instructions.
I'm running Mac Office 2011.
I have a worksheet (named "multiples") in the following format:
| Reference |
State |
Multiple |
Text |
| Number |
|
Name |
Click Me |
|
|
|
|
| 64000005 |
ALABAMA |
19th Century Spring Hill Neighborhood TR |
Text |
| 64000006 |
ALABAMA |
Anniston MRA |
Text |
The TEXT field has a URL. I would like to extract the hyperlink from it and put it into the adjacent cell.
I found this macro:
Sub hyper()
Dim sht As Worksheet: Set sht = Worksheets("multiples")
Dim cll As Range
For Each cll In sht.Range("e8:e15")
sht.Cells(cll.Row, cll.Column + 1).Value = cll.Hyperlinks(1).Address
Next cll
End Sub
When I try to run it tho, it stops at the 5th line and I get a "Run-time error '9': Subscript out of range" error and it highlights the entire line.
Could someone please help me with this. I'm just looking for the easiest way to achieve this goal and I cannot figure it out on my own.
Many thanks for any guidance.