How do I waiting like Sleep() in a cusomized form's event handler?

A

Alexander

Hello,

(to read from Microsoft staff only -> "managed newsgroups")

I make an http Request from my customized message form's MyButton_onclick
handler in Outlook 2003. So I need to wait, after the user has made some
action in the loaded HTML-Formular. Then I'd like to read the results in to
my form.

I havn't found any way to stay waiting in my function. Has anybody any idea?
(May be following way: to access the VBA-modules/classes from my form code?)

I've tried following alternative ways from the Outlook mail item's VBScript
form code, all of them without success:
1. attempt to bind the kernel32 library to call Win32 API Sleep, because I
didn't found any Sleep-Method in VBA/VBScript.
2. attempt to access my VBA-Project with its name (e.g. Project1.myFunction
following the article http://support.microsoft.com/?id=555159)
3. attempt to define and bind my MyButton_onclick method in the VBA-Project
4. attempt to find a way to call WScript.Sleep() from WScript engine.

I didn't found any way to explicitly include the module name. Do you know,
how to do this?

My aim is to let the user click a button. In the onclick event handler a
call InternetExplorer.Application and let the user do some actions. I must
get the results from the explorer application. If I could wait in the
handler, I could take them directly.



Thank you in advance
Alexander
 

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