Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable Doubleclick for a range

I am trying to disable the mouse doubleclick for a
certain range of cells (e.g. A1:A10), not the entire
workbook as the "Application.EditDirectlyInCell = False"
does. I have been spinning my wheels so any help on this
would be very much appreciated.

Thanks,
Brandon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Disable Doubleclick for a range

This is a duplicate. Thanks Rob, Vasant, Patrick, and
John for your assistance. I will try those and let you
know if they worked.

Thanks again,
Brandon
-----Original Message-----
I am trying to disable the mouse doubleclick for a
certain range of cells (e.g. A1:A10), not the entire
workbook as the "Application.EditDirectlyInCell = False"
does. I have been spinning my wheels so any help on this
would be very much appreciated.

Thanks,
Brandon
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Disable Doubleclick for a range

Brandon,

Try something like the following in the code module for the
appropriate worksheet.

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range,
Cancel As Boolean)
If Not Application.Intersect(Range("A1:A10"), Target) Is Nothing
Then
Cancel = True
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Brandon" wrote in message
...
I am trying to disable the mouse doubleclick for a
certain range of cells (e.g. A1:A10), not the entire
workbook as the "Application.EditDirectlyInCell = False"
does. I have been spinning my wheels so any help on this
would be very much appreciated.

Thanks,
Brandon



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
From a Data Range DoubleClick on a cell to populate elsewhere KalliKay Excel Discussion (Misc queries) 1 May 6th 09 06:05 PM
Disable a range of Cells SU Excel Worksheet Functions 1 May 28th 06 10:40 AM
doubleclick PH NEWS Excel Worksheet Functions 1 March 10th 06 11:54 AM
Disable Doubleclick Brandon[_5_] Excel Programming 7 January 4th 04 05:27 AM
Before DoubleClick John Pierce Excel Programming 1 October 28th 03 01:47 PM


All times are GMT +1. The time now is 08:02 PM.

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"