View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
@lan[_5_] @lan[_5_] is offline
external usenet poster
 
Posts: 1
Default 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