Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Over ride double-click handler?

Hi,

Is there a way to over-ride the default "double-click" method, using VB
code?

What I'd like to do is for an image editing application to launch when a use
double-clicks on a cell, and for that image editing application to open the
file-path reference contained within that particular cell.

For a variety of reasons, I don't want to record a macro and attach it to a
button.

Any help would be most appreciated.









  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Over ride double-click handler?

Use the beforedoubleclick event (right click on the sheet tab, select view
code, in the left dropdown of the module select workbook and in the right,
select beforedoubleclick)

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel
As Boolean)

If target.Address = "$C$5" then
cancel = true
shell "C:\Windows\ImageApp.exe " & target.value
End if
End Sub

Action would be taken for cell C5, Change to match you situation.

--
Regards,
Tom Ogilvy

SW wrote in message
...
Hi,

Is there a way to over-ride the default "double-click" method, using VB
code?

What I'd like to do is for an image editing application to launch when a

use
double-clicks on a cell, and for that image editing application to open

the
file-path reference contained within that particular cell.

For a variety of reasons, I don't want to record a macro and attach it to

a
button.

Any help would be most appreciated.











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:13 AM.

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"