다음을 통해 공유


Workbook.SheetBeforeDoubleClick Event (Excel)

Occurs when any worksheet is double-clicked, before the default double-click action.

Syntax

.SheetBeforeDoubleClick(Sh, Target, Cancel)

An expression that returns a Workbook object.

Parameters

Name

Required/Optional

Data Type

Description

Sh

필수

Object

A Worksheet object that represents the sheet.

Target

필수

Range

The cell nearest to the mouse pointer when the double-click occurred.

Cancel

필수

Boolean

False when the event occurs. If the event procedure sets this argument to True, the default double-click action isn't performed when the procedure is finished.

Remarks

This event doesn't occur on chart sheets.

Example

This example disables the default double-click action.

Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, _ 
 ByVal Target As Range, ByVal Cancel As Boolean) 
 Cancel = True 
End Sub

참고 항목

개념

Workbook Object

Workbook Object Members