Thread: ole timeout
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jean-Daniel Perroset Jean-Daniel Perroset is offline
external usenet poster
 
Posts: 1
Default ole timeout

Hello,

In c++, changing the ole timeout delay is achieved by the following code:

COleMessageFilter *m_ole_msg_filter;
m_ole_msg_filter=AfxOleGetMessageFilter();
m_ole_msg_filter-SetMessagePendingDelay(timeout);

where timeout beeing passed as parameter to SetMessagePendingDelay is the delay in ms.

By the way, I still didn't found how to implement this timeout in VBA... if somebody knows...

Best regards.

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com