Hi Experts,
On my DATA Sheet, clients’ names are listed on Rows 3-52 on Column B. The Double Click macro below allows me to copy a Client’s name from column B and add it to the bottom of a Dynamic Named Range entitled “cashdd” which starts on Row 87 of Column A and records the transaction with a tick in the relevant cell in Column G. At present a Double Click a on a ticked cell in G Rows 3-52 will remove the tick and I wondered if there was any way of removing the name from “cashdd” as well
On my DATA Sheet, clients’ names are listed on Rows 3-52 on Column B. The Double Click macro below allows me to copy a Client’s name from column B and add it to the bottom of a Dynamic Named Range entitled “cashdd” which starts on Row 87 of Column A and records the transaction with a tick in the relevant cell in Column G. At present a Double Click a on a ticked cell in G Rows 3-52 will remove the tick and I wondered if there was any way of removing the name from “cashdd” as well
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("G3:G52")) Is Nothing Then
Cancel = True
Target.Font.Name = "Marlett"
If Target = vbNullString Then
Target = "a"
If Target = "a" Then Target.Offset(, -5).Copy Destination:=Range("A" & Rows.Count).End(xlUp).Offset(1)
Else
Target = vbNullString
End If
End If
End Sub