ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA to remove hyperlink? (https://www.excelbanter.com/excel-programming/338888-vba-remove-hyperlink.html)

keithb

VBA to remove hyperlink?
 
How can I use VBA to remove a hyperlink from a cell, while retaining the
cell content?

Thanks,

Keith



Gary's Student

VBA to remove hyperlink?
 
sub hypergone()
Selection.Hyperlinks.Delete
end sub

Just select the cells you want to clean first and then run the macro.

God Luck
--
Gary's Student


"keithb" wrote:

How can I use VBA to remove a hyperlink from a cell, while retaining the
cell content?

Thanks,

Keith




Dave Peterson

VBA to remove hyperlink?
 
You've got another very similar answer in .misc.

keithb wrote:

How can I use VBA to remove a hyperlink from a cell, while retaining the
cell content?

Thanks,

Keith


--

Dave Peterson


All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com