View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_127_] Leith Ross[_127_] is offline
external usenet poster
 
Posts: 1
Default Hyperlinks.Add does nothing


Hello Itarnak,

The problem appears to be the Hyperlink address, you are using th
cell's address instead of its contents. Change your code to this...


Code
-------------------

For Each h In FirstSheet.Hyperlinks
SecondSheet.Hyperlinks.Add(Anchor:=h.Range, Address:=h.Range.Value, TextToDisplay:=Switch(Not IsEmpty(h.TextToDisplay), h.TextToDisplay, IsEmpty(h.TextToDisplay), h.TextToDisplay))
Next h

-------------------

--
Leith Ros

-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=47971