I have a VBA application that starts
execution in Excel 2000 and opens anohter program Called "Refelction",using
CreateObject command.
Reflection is an emaulation software that downloads data from a UNIX computer
box.
What seems to be happening is that after
a while Excel is timing out waiting for
Reflection to download data. Excel gives me this message:
"Microsoft Excel is waiting for another application
to complete an OLE action."
I am wondering if there is a way to suppress or
trap this message? I've tried on
Application.DisplayAlerts = False.
It did not work.
Question is this message above considered an Alert?
How can I supress the message?
Maybe there is a setting that I
can change to set the timeout value to be longer?
Everything is executing exactly the way I want it
to. I just want Excel to be more patient and wait
till Reflection is finished.
Any help would be greatly appreciated!
Thanks!
Sorry I'm not much help, but I sympathize with your woe. It was pretty
annoying.
"AAOmari" <aao...@aol.com> wrote in message
news:20020521220519...@mb-ce.aol.com...
Private Declare Function _
CoRegisterMessageFilter Lib "OLE32.DLL" _
(ByVal lFilterIn As Long, _
ByRef lPreviousFilter) As Long
Sub KillMessageFilter()
Dim lMsgFilter As Long
''' Remove the message filter before calling Reflections.
CoRegisterMessageFilter 0&, lMsgFilter
''' Call Reflections here....
''' Restore the message filter after calling Reflections.
CoRegisterMessageFilter lMsgFilter, lMsgFilter
End Sub
--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/
* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *
"AAOmari" <aao...@aol.com> wrote in message
news:20020521220519...@mb-ce.aol.com...