View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Joseph Tom Joseph is offline
external usenet poster
 
Posts: 51
Default Excel waiting for OLE action - how to resolve

I am using Excel VBA to create and email PDFs using Outlook,

The code that follows generally works, but on occasion I get:
Microsoft Office Excel is waiting for another application to complete an OLE
action.

I hangs here (first line):

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)

Are there any workarounds or other ways of making this process more reliable?

Thanks,