waiting for shell in VBA

G

Gary Roach

i'm using VBA with access under office XP and i want to execute a shell
function synchronously. i can get the task ID back from the shell call but
what do i do with it? the documentation on shell tells me:

By default, the Shell function runs other programs asynchronously. This
means that a program started with Shell might not finish executing before
the statements following the Shell function are executed.

which suggests that there is a way to override the default asynchronous
behaviour but it doesn't say how. currently i am using doevents but i don't
know if this is reliable. any ideas? your help is greatly appreciated.

gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top