Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This would show you the URL of the hyperlink in cell A1. You would want to
set this up to loop through all the cells in whichever column your links are. If there is only one hyperlink in each cell, you can stick with the "hyperlinks(1)" as I show in the example. '------------------------------ Sub GetHyper() Dim strURL As String If Cells(1, 1).Hyperlinks.Count 0 Then strURL = Cells(1, 1).Hyperlinks(1).Address End If MsgBox strURL End Sub '----------------------------- Steve Yandl "dstiefe" wrote in message ... I have a column of information and in each cell is a word...and the word is also a hyperlink in VBA how do i assign the URL of the hyperlink to a variable? Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
reading hyperlinks | Excel Programming | |||
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 | |||
Excel Hyperlinks- cell content v. hyperlinks | Excel Discussion (Misc queries) |