ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Execute an external file in Active X control Button (https://www.excelbanter.com/excel-programming/416885-execute-external-file-active-x-control-button.html)

KJ MAN

Execute an external file in Active X control Button
 
Hi,
I need excel to execute a file with a .BIN extension.
Shell doesnt seem to work for me.
var = Shell("drive:\fldr1\fldr2\fl-dr-3\file name.bin", 1)
More Specifically what I need is for the command button to run the file
based off of the adjacent cell contents
A B C
-----------------------------------------------------------
1 l Persons name l path of file l COMMAND BUTTON
-----------------------------------------------------------
If you double click the file windows knows what program opens the file
and it will open the program and run the file. I need Excel to perform
the Double-Click so to speak.

Can anyone help?


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com