Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
modification of hyperlink name
Hi,
could you tell me why the following code cause an execution error? For Each h In Worksheets(nomfeuille).Hyperlinks If InStr(h.Name, "test1") < 0 Then h.Name = Replace(h.Name, "test1", "test2") End If Next thank -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
modification of hyperlink name
I think the Name property is read only for hyperlinks, although I couldn't confirm that in help. Try changing the Address property instead. -- Dick Kusleika MVP - Excel Excel Blog - Daily Dose of Excel www.dicks-blog.com "@lan " wrote in message ... Hi, could you tell me why the following code cause an execution error? For Each h In Worksheets(nomfeuille).Hyperlinks If InStr(h.Name, "test1") < 0 Then h.Name = Replace(h.Name, "test1", "test2") End If Next thanks --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
modification of hyperlink name
It's ok with Address property
thank you! Dick Kusleika wrote: *I think the Name property is read only for hyperlinks, although couldn't confirm that in help. Try changing the Address property instead. -- Dick Kusleika MVP - Excel Excel Blog - Daily Dose of Excel www.dicks-blog.com "@lan " wrote in message ... Hi, could you tell me why the following code cause an execution error? For Each h In Worksheets(nomfeuille).Hyperlinks If InStr(h.Name, "test1") < 0 Then h.Name = Replace(h.Name, "test1", "test2") End If Next thanks --- Message posted from http://www.ExcelForum.com/ -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
macro - modification | Excel Discussion (Misc queries) | |||
last modification | Excel Discussion (Misc queries) | |||
MODIFICATION IS NOT ALLOWED | Excel Worksheet Functions | |||
Excel2003 Hyperlink Modification | Links and Linking in Excel | |||
Modification to code | Excel Programming |