bigsistar12
New Member
- Joined
- Mar 10, 2011
- Messages
- 18
I will be importing data in Column A:AF.
This is what I am trying to do:
Each time new formation is entered in a row ex A3:Af3
A3 will be a hyperlink that references all cells A3:AF3
I found this but it creates a hyperlink to each cell in row 3 intead of creating one link to range A3:AF3
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
This Action creates hyperlink in A3 which is perfect but the hyperlink does not link to anything.
ActiveCell.Hyperlinks.Add ActiveCell, ActiveCell.Value
Can anyone help me?
I am new to Macros and still learning the codes.
This is what I am trying to do:
Each time new formation is entered in a row ex A3:Af3
A3 will be a hyperlink that references all cells A3:AF3
I found this but it creates a hyperlink to each cell in row 3 intead of creating one link to range A3:AF3
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
This Action creates hyperlink in A3 which is perfect but the hyperlink does not link to anything.
ActiveCell.Hyperlinks.Add ActiveCell, ActiveCell.Value
Can anyone help me?
I am new to Macros and still learning the codes.