Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Double Click

Depends on the version of excel:

In xl2002+, you can do something like:

Application.CommandBars.DisableCustomize = True

Before that, you could disable _ALL_ the double clicking with something like:

Option Explicit
Sub testme()
Application.CommandBars("Toolbar list").Enabled = False
Application.CommandBars("Tools").Controls("Customi ze...").Enabled = False
'and if you want to stop the doubleclicking in the commandbar area
'from bringing up the customization dialog:
Application.OnDoubleClick = "donothing"
End Sub

Sub donothing()
' MsgBox "hi"
End Sub

But disabling the doubleclick kills it for everything.

To bring it back,
Application.OnDoubleClick = ""



halem2 wrote:

Hi:

I'm using

Application.CommandBars("Toolbar List").Enabled = False

to prevent the right click on the toolbar but if you double-click on an
empty space in the tool bar, it still shows the Customize box with
Toolbars, Commands and Options.

Is there a wa to restrict the double-click also? thanks!

--
halem2
------------------------------------------------------------------------
halem2's Profile: http://www.excelforum.com/member.php...fo&userid=9930
View this thread: http://www.excelforum.com/showthread...hreadid=261702


--

Dave Peterson

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 lmb Excel Discussion (Misc queries) 4 September 6th 07 07:38 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


All times are GMT +1. The time now is 11:59 PM.

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

About Us

"It's about Microsoft Excel"