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

I have downloaded a lot of text from a site and most of it is in hyperlinks, but I just
want the text. Is there a quick way to remove all the hyperlinks in a worksheet or
workbook. I appreciate I could loop round all the cells but there is a lot of material and
I just wondered if there was something simpler. I would value any help.

Regards
Graham
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Remove hyperlinks

Hi Graham,

Try:

ActiveSheet.Hyperlinks.Delete




---
Regards.
Norman


"Graham H" wrote in message
...
I have downloaded a lot of text from a site and most of it is in
hyperlinks, but I just want the text. Is there a quick way to remove all
the hyperlinks in a worksheet or workbook. I appreciate I could loop round
all the cells but there is a lot of material and I just wondered if there
was something simpler. I would value any help.

Regards
Graham


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Remove hyperlinks

Thanks for that Norman, I think Nates description of "one line and poof!" sums it up.
Many thanks to both of you.

Graham

Norman Jones wrote:
Hi Graham,

Try:

ActiveSheet.Hyperlinks.Delete




---
Regards.
Norman


"Graham H" wrote in message
...
I have downloaded a lot of text from a site and most of it is in
hyperlinks, but I just want the text. Is there a quick way to remove
all the hyperlinks in a worksheet or workbook. I appreciate I could
loop round all the cells but there is a lot of material and I just
wondered if there was something simpler. I would value any help.

Regards
Graham


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Remove hyperlinks

Sub RemoveHyperLinks()
Dim hlinks As Hyperlinks
Dim hlink As Hyperlink
Set hlinks = Sheet1.Hyperlinks

For Each hlink In hlinks
hlink.Delete
Next hlink

End Sub

There you go :D grab the hyperlinks collection from Sheet1 (change if on
another sheet) and then go through each hyperlink in the collection, deleting
as you go.

Hope this helps! :)

"Graham H" wrote:

I have downloaded a lot of text from a site and most of it is in hyperlinks, but I just
want the text. Is there a quick way to remove all the hyperlinks in a worksheet or
workbook. I appreciate I could loop round all the cells but there is a lot of material and
I just wondered if there was something simpler. I would value any help.

Regards
Graham

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Remove hyperlinks

Oops, Norman's way is much better - Only one line and poof! They're all gone.

"NateBuckley" wrote:

Sub RemoveHyperLinks()
Dim hlinks As Hyperlinks
Dim hlink As Hyperlink
Set hlinks = Sheet1.Hyperlinks

For Each hlink In hlinks
hlink.Delete
Next hlink

End Sub

There you go :D grab the hyperlinks collection from Sheet1 (change if on
another sheet) and then go through each hyperlink in the collection, deleting
as you go.

Hope this helps! :)

"Graham H" wrote:

I have downloaded a lot of text from a site and most of it is in hyperlinks, but I just
want the text. Is there a quick way to remove all the hyperlinks in a worksheet or
workbook. I appreciate I could loop round all the cells but there is a lot of material and
I just wondered if there was something simpler. I would value any help.

Regards
Graham



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
Remove Hyperlinks Jester Links and Linking in Excel 2 June 5th 10 03:46 AM
Trying to remove hyperlinks Carrguy Excel Programming 1 September 9th 06 09:02 PM
Remove Hyperlinks dthmtlgod Excel Programming 3 December 29th 05 01:00 PM
remove all hyperlinks ski2004_2005 Excel Programming 1 June 8th 05 07:40 PM
How do I remove hyperlinks westy Excel Discussion (Misc queries) 1 March 20th 05 12:05 AM


All times are GMT +1. The time now is 04:50 PM.

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"