modification of hyperlink name

  • Thread starter Thread starter @lan
  • Start date Start date
@

@lan

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
 
I think the Name property is read only for hyperlinks, although I couldn't
confirm that in help. Try changing the Address property instead.
 
It's ok with Address property
thank you!


Dick said:
*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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top