A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Remove hyperlinks



 
 
Thread Tools Display Modes
  #1  
Old November 3rd, 2004, 06:34 PM
VT
external usenet poster
 
Posts: n/a
Default Remove hyperlinks

Hi All,

I have a workbook with about 20 sheets, each contains hundreds of hyperlink.
I have a macro from Microsoft (http://support.microsoft.com/kb/213790) to
remove all of the hyperlinks. After this is done, all the text formats were
changed back to Normal. Is there a way to remove the hyperlinks while
keeping the exact same text formats?

Thanks,

VT


  #2  
Old November 4th, 2004, 12:20 AM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Vt wrote:
Is there a way to remove the hyperlinks while
keeping the exact same text formats?

Sub LoseHyperlinksButKeepFormatting()
Dim C As Range
Dim H As Hyperlink
Dim cSave As Range
Set cSave = Range("A1").SpecialCells(xlLastCell)
For Each H In ActiveSheet.Hyperlinks
Set C = H.Range
C.Copy
cSave.PasteSpecial xlPasteFormats
H.Delete
cSave.Copy
C.PasteSpecial xlPasteFormats
Next
cSave.Clear
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove all hyperlinks (keeping the text) from a document blueboy General Discussion 2 September 25th, 2004 02:50 AM
Is there a keyboard shortcut to remove hyperlinks? blueboy General Discussion 3 September 24th, 2004 11:01 PM
Remove Multiple Hyperlinks Bonnie Worksheet Functions 1 January 2nd, 2004 04:32 AM
REMOVE ALL HYPERLINKS IN SHEET "AT ONCE" Vasant Nanavati Worksheet Functions 1 October 9th, 2003 07:44 PM


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


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