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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |