Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change syperlink from single click to double click syperlinker Excel Worksheet Functions 0 June 13th 08 05:01 PM
Double click Anette Denmark Excel Discussion (Misc queries) 10 February 18th 07 04:24 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Before Double-Click Jim May Excel Discussion (Misc queries) 2 December 18th 04 05:52 PM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"