Hi,
I have this so far:
It works fine, but I'm sure there is a better way to write this.![]()
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Target.Address = Range("tp.A").Address Then Call tpSelect Cancel = True End If If Target.Address = Range("tp.B").Address Then Call tpSelect Cancel = True End If End Sub
There will be many more ranges (50+ ranges) and they all "Call tpSelect" on doubleclick.
I have tried "If Target.Address = Range("tp.A", "tp.B", ...).Address Then" but that doesn't work I guess.
Oh and these are named ranges...
Thanks in advance.
Bookmarks