Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Differentiating Text from Hyperlink Data type

refer to the hyperlinks

Sub GetAddress()
Dim hlink As Hyperlink
Dim rng As Range
For Each hlink In ActiveSheet.Hyperlinks
Set rng = hlink.Range
rng.Offset(0, 1).Value = hlink.Address
Next

End Sub

--
Regards,
Tom Ogilvy



"Sathya" wrote in message
...
Hi Guys,
I have a little problem using hyperlinks in Excel
worksheets.
I have a column with text as well as hyperlinks, I need to
only extract the hyperlink addresses to another column
The macro i wrote fails as it tries to do the operation on
text too.
Is there a function to differentiate between text and a
hyperlink?

Any help would be appreciated
Thanks.



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
formating cell with TEXT data type Vinayak Excel Discussion (Misc queries) 1 September 19th 07 12:53 PM
Differentiating data by year into columns Toon Excel Worksheet Functions 1 February 22nd 06 06:12 PM
get SQL Server text data type into Excel pivot table Lee@360Commerce Excel Discussion (Misc queries) 0 August 19th 05 11:37 PM
Only text values matching using index/match lookup - data type pro Stanton Excel Worksheet Functions 1 August 2nd 05 01:05 AM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 09:58 PM.

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

About Us

"It's about Microsoft Excel"