Reputation: 6950
What is the difference between functions:
Worksheet_BeforeDoubleClick
Workbook_SheetBeforeDoubleClick
?
Upvotes: 1
Views: 228
Reputation: 34075
Worksheet_BeforeDoubleClick
is specific to whichever sheet the code is located in, whereas Workbook_SheetBeforeDoubleClick
will be triggered by double-clicking any sheet in the workbook (assuming you have it correctly located in the ThisWorkbook module).
Upvotes: 3
Reputation: 510
The Workbook_SheetBeforeDoubleClick is a workbook level event and so the code in here would trigger for every sheet in the workbook if you double click The Worksheet_BeforeDoubleClick is a worksheet level event and so goes inside the individual worksheet and only applies to double clicking in that worksheet
Upvotes: 2