Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default reading hyperlinks

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reading hyperlinks Jacob Skaria Excel Programming 0 November 10th 09 05:45 PM
Hyperlinks: Hyperlinks change on copy/paste? Rick S. Excel Worksheet Functions 0 November 13th 07 08:19 PM
autocreating hyperlinks in excel? ie 500 cells to 500 hyperlinks? terry Excel Programming 0 November 1st 07 03:55 PM
Update 2000 Excel hyperlinks to 2003 hyperlinks lonv155 Excel Worksheet Functions 4 October 25th 07 05:51 AM
Excel Hyperlinks- cell content v. hyperlinks herpetafauna Excel Discussion (Misc queries) 2 May 23rd 06 04:39 AM


All times are GMT +1. The time now is 05:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"