Hi,
I'm new to VB and have copied a command which auto filters values on a separate worksheet ("Unique Acc"). This is trigerred by a drop down selection - change in value in a separate worksheet (SRA 1).
In the "SRA 1" worksheet, the command I have is:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 14 And Target.Column = 4 Then
'calculate criteria cell in case calculation mode is manual
Worksheets("Raw Data 2").Range("O6").Calculate
Worksheets("Raw Data 2").Range("SRA_BRK_DATA") _
.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Raw Data 2").Range("O5:O6"), _
CopyToRange:=Sheets("Unique Acc").Range("H6:I6"), Unique:=True
Is it possible to have this trigerred by a click instead, still driven by a target row and column location?
Is it possible to trigger the command above by both change in value and mouse click in the same worksheet?
Thanks in advance,
SONART
I'm new to VB and have copied a command which auto filters values on a separate worksheet ("Unique Acc"). This is trigerred by a drop down selection - change in value in a separate worksheet (SRA 1).
In the "SRA 1" worksheet, the command I have is:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row = 14 And Target.Column = 4 Then
'calculate criteria cell in case calculation mode is manual
Worksheets("Raw Data 2").Range("O6").Calculate
Worksheets("Raw Data 2").Range("SRA_BRK_DATA") _
.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Raw Data 2").Range("O5:O6"), _
CopyToRange:=Sheets("Unique Acc").Range("H6:I6"), Unique:=True
Is it possible to have this trigerred by a click instead, still driven by a target row and column location?
Is it possible to trigger the command above by both change in value and mouse click in the same worksheet?
Thanks in advance,
SONART