ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to run an API (https://www.excelbanter.com/excel-programming/418788-how-run-api.html)

Johan

How to run an API
 
I have tried to copy different shell command to my VB project (f ex
ShellAndWait Function) and run it, but it does not start at all. What am I
doing wrong?

Thanks for any help!!
Johan

Rick Rothstein

How to run an API
 
It is kind of hard to say without seeing the code you tried to use.

--
Rick (MVP - Excel)


"Johan" wrote in message
...
I have tried to copy different shell command to my VB project (f ex
ShellAndWait Function) and run it, but it does not start at all. What am I
doing wrong?

Thanks for any help!!
Johan



joel

How to run an API
 
Look at posting below. The code starts a process using the shell command and
then uses the Win32 library function WaitForSingleObject(). Use the code on
this posting because it includes some error checking messages that will help
you isolate the problem.

http://www.microsoft.com/communities...&cr=&sloc=&p=1

"Johan" wrote:

I have tried to copy different shell command to my VB project (f ex
ShellAndWait Function) and run it, but it does not start at all. What am I
doing wrong?

Thanks for any help!!
Johan


Johan

How to run an API
 
Thank you, but my problem is that when I paste this code into my project and
press F5 or F8 nothing happend. Do I have to activate the ode or how do I
execute this kind of code.

Joel skrev:

Look at posting below. The code starts a process using the shell command and
then uses the Win32 library function WaitForSingleObject(). Use the code on
this posting because it includes some error checking messages that will help
you isolate the problem.

http://www.microsoft.com/communities...&cr=&sloc=&p=1

"Johan" wrote:

I have tried to copy different shell command to my VB project (f ex
ShellAndWait Function) and run it, but it does not start at all. What am I
doing wrong?

Thanks for any help!!
Johan



All times are GMT +1. The time now is 06:41 PM.

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