mambo5


Hi,

I want to run an exe file in excel using VB, any simple coding for that

Thanks.





Re: run an exe file in excel using VB

js06


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







Re: run an exe file in excel using VB

mambo5

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.






Re: run an exe file in excel using VB

js06

You need the Visual Basic for Applications forum






Re: run an exe file in excel using VB

Shasur

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






Re: run an exe file in excel using VB

mambo5

Thank you Shasur,

you really help a lot, cheers.