Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Waiting for an OLE Action

I have a program that automatically create reports through SQL and Excel. It
opens report templates, runs the associated SQL, creates and exports the
reports to defined directories. I need to run an Access application to
generate one particular set of reports. It works, but after so many minutes I
get this "Microsoft Office Excel is waiting for another application to
complete an OLE action."

I don't mind the message as Access will complete its tasks and come back to
the scheduler. However, the message box is still up there and I have to click
it to go to the next report. Is there a way I can program around or through
the message box?
Candyman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Waiting for an OLE Action

There is nothing wrong with your code. The reason you saw that annoying
message box is because excel is running out its ole waiting time.

The simplest way to give a remedy is by adding the following code at the
beginning of your VBA or any type of interoperability code.

' app_excel is a excel application object
app_excel.DisplayAlerts = False

and don't foreget to restore it back at the bottom line of your code

' app_excel is a excel application object
app_excel.DisplayAlerts = true


--
John 3:16


"Candyman" wrote:

I have a program that automatically create reports through SQL and Excel. It
opens report templates, runs the associated SQL, creates and exports the
reports to defined directories. I need to run an Access application to
generate one particular set of reports. It works, but after so many minutes I
get this "Microsoft Office Excel is waiting for another application to
complete an OLE action."

I don't mind the message as Access will complete its tasks and come back to
the scheduler. However, the message box is still up there and I have to click
it to go to the next report. Is there a way I can program around or through
the message box?
Candyman

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel is waiting for another program OLE Action Peter Swanton Excel Discussion (Misc queries) 0 December 5th 07 06:40 PM
Please help me --- Microsoft Excel is waiting for an OLE action erick-flores Excel Discussion (Misc queries) 0 February 6th 07 04:42 PM
Microsoft Excel is waiting for another application to complete an OLE action Glen Davis Jr. Excel Discussion (Misc queries) 0 May 4th 05 04:10 PM
Waiting for OLE action Ingvar E Excel Programming 2 September 23rd 04 08:50 PM
Waiting for app to complete OLE action Don B[_3_] Excel Programming 0 October 2nd 03 01:20 PM


All times are GMT +1. The time now is 06:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"