#1   Report Post  
Shawn
 
Posts: n/a
Default Removing Hyperlink

I recorded a macro where I remove a Hyperlink. I am using that code in a
larger program. The problem is, this code removes all the cell formatting,
not just the hyperlink. How can I remove the hyperlink, by code, without
removing other cell formatting?
--
Thanks
Shawn
  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

Use Clearcontents instead of Clear
"Shawn" wrote in message
...
I recorded a macro where I remove a Hyperlink. I am using that code in a
larger program. The problem is, this code removes all the cell

formatting,
not just the hyperlink. How can I remove the hyperlink, by code, without
removing other cell formatting?
--
Thanks
Shawn



  #3   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Shawn,

Selection.Hyperlinks.Delete
more information in: http://www.mvps.org/dmcritchie/excel...#DelHyperlinks ---HTH, David McRitchie, Microsoft MVP -
Excel [site changed Nov. 2001]My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htmSearch Page:
http://www.mvps.org/dmcritchie/excel/search.htm "Shawn" wrote in message
...
I recorded a macro where I remove a Hyperlink. I am using that code in a
larger program. The problem is, this code removes all the cell formatting,
not just the hyperlink. How can I remove the hyperlink, by code, without
removing other cell formatting?
--
Thanks
Shawn



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
Importing Access File with Hyperlink B.C.Lioness Excel Discussion (Misc queries) 0 April 29th 05 10:13 PM
Hyperlink Length Jason Excel Worksheet Functions 0 January 14th 05 05:49 PM
Removing hyperlink Frank Marousek Excel Discussion (Misc queries) 3 January 12th 05 09:53 PM
How can I extract hyperlink value pat_rick Excel Discussion (Misc queries) 1 January 8th 05 01:17 AM
Removing Multiple Hyperlinks Olly New Users to Excel 0 November 29th 04 11:17 AM


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"