Shooter_99999
New Member
- Joined
- Sep 29, 2022
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
Hi All,
Looking for some help with IF statements.
The below is an extract of a Pivot Table report (column D is normally hidden).
If the user double clicks on an entry in column A, it calls a macro (DTB) that runs another report to provide a detailed breakdown of the number clicked on.
The above uses the following code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True ' prevent double-click from causing Edit Mode in cell
If ActiveCell.Offset(, 3).Value = "1" Then Call DTB Else MsgBox ("You need to double click on the Actuals (Inc PO's) Column")
End Sub
I'd like to add similar functionality that if somone clicks on an entry in column C, it will call another Macro, that will provide a breakdown of the figure clicked on.
I can see how I could do this without having the message box, but cannot figure how to do it with keeping the message box.
Thanks in advance
Looking for some help with IF statements.
The below is an extract of a Pivot Table report (column D is normally hidden).
If the user double clicks on an entry in column A, it calls a macro (DTB) that runs another report to provide a detailed breakdown of the number clicked on.
The above uses the following code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True ' prevent double-click from causing Edit Mode in cell
If ActiveCell.Offset(, 3).Value = "1" Then Call DTB Else MsgBox ("You need to double click on the Actuals (Inc PO's) Column")
End Sub
I'd like to add similar functionality that if somone clicks on an entry in column C, it will call another Macro, that will provide a breakdown of the figure clicked on.
I can see how I could do this without having the message box, but cannot figure how to do it with keeping the message box.
Thanks in advance