#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Doubleclick

Is it possible to use two DoubleClick's same programme?
Probably, not.

Is there a work around?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Doubleclick


Something like this?...

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
If Target.Column = 2 Then
Cancel = True
MsgBox "Add more salt"
ElseIf Target.Column = 5 Then
Cancel = True
MsgBox "Pour on the Ketchup"
End If
End Sub
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"smandula"
wrote in message
Is it possible to use two DoubleClick's same programme?
Probably, not.
Is there a work around?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Doubleclick


Thanks Jim,

Your Solution works.
However, the target value resides in the same column,
from which a Draw Line goes both left and right up the rows
moving one column over each time.

I went back to the Command Button setup, which means
Click the cell, Click the Button.

DoubleClick would have eliminated one step.

However, exercise is Good.

With Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 638
Default Doubleclick

On Oct 11, 8:42 pm, smandula wrote:
Thanks Jim,

Your Solution works.
However, the target value resides in the same column,
from which a Draw Line goes both left and right up the rows
moving one column over each time.

I went back to the Command Button setup, which means
Click the cell, Click the Button.

DoubleClick would have eliminated one step.

However, exercise is Good.

With Thanks


Not sure what your criteria is, but you could so something like:
If Target.Text = "Fred" Then
MsgBox "Flinstone"
ElseIf Target.Text = "Barney" Then
MsgBox "Rubble"
End If

Of course, if you have many conditions, a Case statement would be
preferred.

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
doubleclick mrehod Dan Excel Programming 2 July 12th 07 10:12 AM
ON.DOUBLECLICK function C Brandt Excel Discussion (Misc queries) 8 May 20th 07 12:27 AM
DoubleClick Method? mickey Excel Programming 4 February 1st 07 03:39 PM
doubleclick PH NEWS Excel Worksheet Functions 1 March 10th 06 11:54 AM
Before DoubleClick John Pierce Excel Programming 1 October 28th 03 01:47 PM


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