Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a word in a cell that is a hyperlink
how do i use VBA to assign the URL of the hyperlink to a variable? Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
First, a single word in a cell that contains multiple words can't be assigned to
a hyperlink. The entire cell is assigned the hyperlink. Dim myCell As Range Dim myURL as string Set myCell = ActiveSheet.Range("A1") If myCell.Hyperlinks.Count 0 Then myurl = myCell.Hyperlinks(1).Address Else myURL "" End If dstiefe wrote: I have a word in a cell that is a hyperlink how do i use VBA to assign the URL of the hyperlink to a variable? Thank you -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlinks: Hyperlinks change on copy/paste? | Excel Worksheet Functions | |||
autocreating hyperlinks in excel? ie 500 cells to 500 hyperlinks? | Excel Programming | |||
Update 2000 Excel hyperlinks to 2003 hyperlinks | Excel Worksheet Functions | |||
How toi turn-off hyperlinks [excel]? Email hyperlinks pop up ! | Excel Discussion (Misc queries) | |||
Excel Hyperlinks- cell content v. hyperlinks | Excel Discussion (Misc queries) |