0

I have a file that contains hyperlinks I am using (VBA) Hyperlink(1).Address property to get the complete hyperlink

However, i only get partial hyperlink, which is not helpful

when i investigated, i realized that in the actual hyperlink , whenever there is a character '#' excel truncates its process and only returns the portion of hyperlink before #.

this has driven me nuts , is there any way to get the complete hyperlink ?


This is how the URL Appears:

https://cppm9044.ondemand.ca.com/niku/nu#action:projmgr.editResource&odf_return_to=homeActionId&id=5842039

The Code I am using:

Dim h As Hyperlink

For Each h In Selection.Hyperlinks hy = Right(h.Address, 7)

Next

Thanks

Martijn Pieters
  • 963,270
  • 265
  • 3,804
  • 3,187
Fahadakbar
  • 458
  • 6
  • 23

0 Answers0