ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   reset cell.Hyperlinks.Count to 0 (https://www.excelbanter.com/excel-programming/376085-reset-cell-hyperlinks-count-0-a.html)

John Smith

reset cell.Hyperlinks.Count to 0
 
How do I reset cell.Hyperlinks.Count to 0? I tried

If cell.Hyperlinks.Count < 0 Then

cell.Hyperlinks.Count = 0

This doesn't work.

Any suggestion?

Thanks.

Ken Puls

reset cell.Hyperlinks.Count to 0
 
You need to delete it:

cell.Hyperlinks.Delete

Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca

John Smith wrote:
How do I reset cell.Hyperlinks.Count to 0? I tried

If cell.Hyperlinks.Count < 0 Then

cell.Hyperlinks.Count = 0

This doesn't work.

Any suggestion?

Thanks.



All times are GMT +1. The time now is 09:44 AM.

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