Hi All,
I am trying to create a hyperlink on the first column of a report, after the report is generated.
for the address, I need to read values from the content of other fields in the report as in
This is part of the hyperlink code, I am using
For i to LastRow
Str = “http://” & range(“URLAddress”).value & “ph=” & cell_that_contains_phoneNo & “st=” & cell_that_contains_starttimevalue & “et=” & cell_that_contains_endtimevalue
Range("A” & i").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address=Str, TextToDisplay:="HLink"
Next i
How do I read the ph, st and et values?
cell_that_contains_phoneNo - 9th field
cell_that_contains_starttimevalue - 2nd field
cell_that_contains_endtimevalue - 3rd field.
Also, I am creating this hyperlink after the report is generated. The above code takes a while to create hyperlink, if the number of rows are large. Is there a better code which creates the links faster?
Thanks,
Rollin
Bookmarks