Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Click for all Sheets
I want to define an action for all sheets in my current workbook to occur
when I double click. Is there a way that I can code the macro only once and sue it for all worksheets, or must I define the macro for each sheet? Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Click for all Sheets
Will the Workbook_SheetBeforeDoubleClick event be useful?
-- Cheers Nigel "Marvin" wrote in message ... I want to define an action for all sheets in my current workbook to occur when I double click. Is there a way that I can code the macro only once and sue it for all worksheets, or must I define the macro for each sheet? Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Click for all Sheets
Hi,
Use Workbooks' Before double click event. Alok "Marvin" wrote: I want to define an action for all sheets in my current workbook to occur when I double click. Is there a way that I can code the macro only once and sue it for all worksheets, or must I define the macro for each sheet? Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Click for all Sheets
Hi Marvin
There is a event in the Thisworkbook module for all sheets Copy the code in there or the macro name Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean) End Sub In the sheet module it is named Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Marvin" wrote in message ... I want to define an action for all sheets in my current workbook to occur when I double click. Is there a way that I can code the macro only once and sue it for all worksheets, or must I define the macro for each sheet? Thanks |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Double Click for all Sheets
Hi Marvin,
Is there a way that I can code the macro only once and sue it for all worksheets, or must I define the macro for each sheet? Use the Thisworkbook's Workbook_SheetBeforeDoubleClick event Regards, Jan Karel Pieterse Excel MVP www.jkp-ads.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to change syperlink from single click to double click | Excel Worksheet Functions | |||
Double click | Excel Discussion (Misc queries) | |||
Click on graph bar to execute a double-click in a pivot table cell | Charts and Charting in Excel | |||
Before Double-Click | Excel Discussion (Misc queries) | |||
Mouse Over Graph, Capture Information on Click(Double Click) | Excel Programming |