Hi All,
I have a VBA script, which works for the whole column which when clicked it allows the user to select a hyperlink file or folder from the computer and it will insert the link into Excel.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column = 23 Then
If Application.Dialogs(xlDialogInsertHyperlink).Show Then
End If
End If
End Sub
Instead of the VBA script just running in Target.Coloum = 23
I want it to be more specific and only work when you click on the cell range - W8:W400
Is this possible? If so what do I need to change in the VBA?
Thanks!
Flack
I have a VBA script, which works for the whole column which when clicked it allows the user to select a hyperlink file or folder from the computer and it will insert the link into Excel.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column = 23 Then
If Application.Dialogs(xlDialogInsertHyperlink).Show Then
End If
End If
End Sub
Instead of the VBA script just running in Target.Coloum = 23
I want it to be more specific and only work when you click on the cell range - W8:W400
Is this possible? If so what do I need to change in the VBA?
Thanks!
Flack