I have two sheets setup: One with records, and one with links. I've got the point with the code below where if I double click on the heading "Link" within the Records sheet then it directs to the Links sheet and filters them based upon the reference in the original "Link" heading.
I was wondering, would I be able to still have the "Link" column but have the VBA code take the reference from the Reference column so I can add a formula to count the amount of links within the Links sheet for that reference... Hope this makes sense. So I could double click on the on the formula link in the "Aim" column and have it return the links of that records reference I've clicked on.
My VBA knowledge is much of copy and pasting from this website!
I was wondering, would I be able to still have the "Link" column but have the VBA code take the reference from the Reference column so I can add a formula to count the amount of links within the Links sheet for that reference... Hope this makes sense. So I could double click on the on the formula link in the "Aim" column and have it return the links of that records reference I've clicked on.
My VBA knowledge is much of copy and pasting from this website!
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 3 Then
Cancel = True
With Sheets("Links")
.Range("A1").AutoFilter 1, Target.Value
Application.Goto .Range("A1"), True
End With
End If
End Sub