bruno_boccara
asked on
EXCEL: HYPERLINK WITH DYNAMIC XLS FILE
Hello,
I have a Excel file with odbc connexion.
for the sample I need the following:
col A - data
col B - URL
col C - data
is there a way to make automatically col B hyperlink link ?
I know how to do it with normal xls spreed but not with dynamic ...
I have a Excel file with odbc connexion.
for the sample I need the following:
col A - data
col B - URL
col C - data
is there a way to make automatically col B hyperlink link ?
I know how to do it with normal xls spreed but not with dynamic ...
Hi bruno_boccara,
If you don't want to create a macro and as long as you don't mind an additional column, then just create a new column alongside your column of URLs. (here, col B)
In the new column type in the formula =HYPERLINK(B). Then copy the formula down the rest of the entries.
If you don't want to create a macro and as long as you don't mind an additional column, then just create a new column alongside your column of URLs. (here, col B)
In the new column type in the formula =HYPERLINK(B). Then copy the formula down the rest of the entries.
ASKER
I do not want to add manually formula.
If I have to create a macro , it is also ok with me. what will be the macro ?
If I have to create a macro , it is also ok with me. what will be the macro ?
Public Sub Convert_To_Hyperlinks()
Dim Cell As Range
For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
If Cell <> "" Then
ActiveSheet.Hyperlinks.Add Cell, Cell.Value
End If
Next
End Sub
Dim Cell As Range
For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
If Cell <> "" Then
ActiveSheet.Hyperlinks.Add
End If
Next
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please let the question open.
did not have time to check the solution.
But it is very important for me.
Regards.
did not have time to check the solution.
But it is very important for me.
Regards.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
=HYPERLINK(B1)
or make the dynamic columns hidden and create 3 columns to the right so you have
=A1
=HYPERLINK(B1)
=C1