Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
cdb cdb is offline
external usenet poster
 
Posts: 62
Default Run some code on a left click

I have some code that I have managed to get to run when you right click in a
certain range of cells using the Worksheet_BeforeRightClick option. Is there
anyway of getting some code to work in the same range when there is a left
click??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Run some code on a left click

Not that I know of, leftclick is used by the worksheet itself to decide
where you want to go to.
You could put a transparent object from the drawing toolbar over the range
and assign the code to it perhaps ? I do that a lot.

HTH. Best wishes Harald

"cdb" skrev i melding
...
I have some code that I have managed to get to run when you right click in

a
certain range of cells using the Worksheet_BeforeRightClick option. Is

there
anyway of getting some code to work in the same range when there is a left
click??



  #3   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Run some code on a left click

How about using BeforeDoubleClick? This would run your code every time the
left mouse button is double clicked.

"cdb" wrote:

I have some code that I have managed to get to run when you right click in a
certain range of cells using the Worksheet_BeforeRightClick option. Is there
anyway of getting some code to work in the same range when there is a left
click??

  #4   Report Post  
Posted to microsoft.public.excel.programming
cdb cdb is offline
external usenet poster
 
Posts: 62
Default Run some code on a left click

I think that's the way I'll have to go - got so caught up in trying to do it
with one click I forgot all about that!!

"Bob" wrote:

How about using BeforeDoubleClick? This would run your code every time the
left mouse button is double clicked.

"cdb" wrote:

I have some code that I have managed to get to run when you right click in a
certain range of cells using the Worksheet_BeforeRightClick option. Is there
anyway of getting some code to work in the same range when there is a left
click??

  #5   Report Post  
Posted to microsoft.public.excel.programming
cdb cdb is offline
external usenet poster
 
Posts: 62
Default Run some code on a left click

Cheers for the suggestion

"Harald Staff" wrote:

Not that I know of, leftclick is used by the worksheet itself to decide
where you want to go to.
You could put a transparent object from the drawing toolbar over the range
and assign the code to it perhaps ? I do that a lot.

HTH. Best wishes Harald

"cdb" skrev i melding
...
I have some code that I have managed to get to run when you right click in

a
certain range of cells using the Worksheet_BeforeRightClick option. Is

there
anyway of getting some code to work in the same range when there is a left
click??






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Run some code on a left click

I would be interested in how you set up code to run on the right click event
when a certain range is activated. I am trying to set up a spreadsheet so
that when any of a particular group of cells is activated, the contents and
formatting of that cell change. Basically, toggling back and forth between
TRUE and FALSE like a check box. However, because the spreadsheet is very
wide, I am using Group & Outline to condense it. When I tried to do this
using standard check boxes, I found that the check boxes do not stick in
place in the cells where I put them, when I collapse the group. So am trying
to make the actual cell do the job. Any ideas?

Mark Schreiber

"cdb" wrote:

I think that's the way I'll have to go - got so caught up in trying to do it
with one click I forgot all about that!!

"Bob" wrote:

How about using BeforeDoubleClick? This would run your code every time the
left mouse button is double clicked.

"cdb" wrote:

I have some code that I have managed to get to run when you right click in a
certain range of cells using the Worksheet_BeforeRightClick option. Is there
anyway of getting some code to work in the same range when there is a left
click??

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
No left click NasaDBGuy Excel Discussion (Misc queries) 0 April 13th 10 07:49 PM
More than one cell is selected when I left click. Why? womusic New Users to Excel 6 May 12th 09 03:55 PM
ALT & left click sby Excel Discussion (Misc queries) 0 May 29th 07 11:17 AM
I click in a cell & it acts like I am holding onto the left mouse koverheul Excel Discussion (Misc queries) 3 May 16th 07 01:36 AM
left click on a cell and more cells are highlighted anand sharma Excel Worksheet Functions 1 June 22nd 05 10:53 PM


All times are GMT +1. The time now is 07:59 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"