Hi,
I want to run an exe file in excel using VB, any simple coding for that
| ||
Visual Basic for Applications (VBA)
What do you mean by - "run an exe file in excel"
Do you want to open an excel file or do something else
Are you using vb.net (VB express) or are you using VBA in excel
hi,
actually i want to use excel to open an exe file, say by click on 'button' in excel, that exe file will be opened. I am using macro in excel.
tahnks.
You need to use OpenProcess Windows API Function or use the Shell Function
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)
For OpenProcess Windows API Function check the following link:
http://vbadud.blogspot.com/2007/06/run-vb60-executable-from-excelword.html
Cheers
Shasur