_Synchro problem ... once again ...

_Synchro problem ... once again ...

serge
Advocate Advocate
211 Views
2 Replies
Message 1 of 3

_Synchro problem ... once again ...

serge
Advocate
Advocate
Still have no solution for this problem ... I start a program (*.exe) from within my VBA-module with Shell() ... The executable is starting but VBA is not waiting and is running the rest of the code ... Instead I want VBA to wait untill the *.exe stops. Has anybody did have the same problem ? Thanks ... SMD
DEVIDTS Serge, CAD Consultant
http://www.CADdICT.be
0 Likes
212 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor
The Shell function is asyncronous. One way to accomplish this is to use the of External Command section of the pgp file. TheBit Flag argument set to '0' will achieve this. However, if your intention is to then run that new command from vba using SendCommand, remember that it too is asyncronous. -Ed

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

Anonymous
Not applicable
Check
href="http://www.vbdesign.net">www.vbdesign.net
, Randall has a synchronous
shell module that we use daily.  It works like a champ!

 


--

 

Richard Binning
CADD Coordinator
The Haskell Company

href="http://www.thehaskellco.com">http://www.thehaskellco.com

 

 

style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
Shell function is asyncronous. One way to accomplish this is to use the of
External Command section of the pgp file. TheBit Flag argument set to '0' will
achieve this. However, if your intention is to then run that new command from
vba using SendCommand, remember that it too is asyncronous.
-Ed
0 Likes