open file from excel
have file name in a cell
i use a beforedoubleclick event
i would like to invoke the double click to the file name
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Column = 5 Then
Cancel = True
'place double click procedure here "C:\Documents and Settings\conpxb12\Desktop\FabMacQuote\S-1550.edrw") For Random As 1
Else: Cancel = False
do not want shell
any help would be great
NO SHELL..too many prob with file types.
if you doubleclick a file on your desktop.. it opens with the appropriate *.exe
i want to do this from the spreadsheet using target.cell info
does this help?
Last edited by batman61; 11-14-2007 at 10:36 AM.
When you say you want to "invoke the double click to the file name," do you mean that you want to open the file in its associated application? If so, you can use the ShellExecute API function: http://www.vb-helper.com/howto_shellexecute.html
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
By extreme in forum VB Classic
Last Post: 06-13-2007, 10:51 PM
By jase_dukerider in forum C++
Last Post: 04-14-2005, 08:48 PM
By Joel in forum VB Classic
Last Post: 12-05-2002, 09:27 PM
By Chris L. in forum VB Classic
Last Post: 08-03-2001, 07:54 PM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center