LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run-time error '1004' running to excel objects at once

I am getting "Run-time error '1004'. Application-defined or object-defined
error"

I have narrowed it down to the subroutine which builds excel objects and
does various formatting with the objects.

The program I have I pass a parameter as to which report I want to generate.
I have schedule tasks set up to run 2 jobs using the same executable but
with different parameters, but ALSO at the SAME time. The error only occurs
when these are running at the same. If I put the 2 job calls in a bat file
and run that - I get no errors.
Also, if I put a couple MsgBox in one of the subroutines and then take my
time click the Ok through the MsgBoxes, then both jobs run successfully.

So this is a problem running parallel excel process, and not if I run them
serially.

It is not feasible for us to run these serially because we generate many
reports, so one type would not even start for 5-10 or more minutes.

I have all the excel objects defined locally in each report type subroutine.
I do have some excelobjname.ActiveWindow, ActiveSheet, ActiveCell. Could
these really be using only one object in memory, even though I should have 2
objects in memory? Has anyone ever had problems similar? If so, any help
in resolution would be greatly appreciated.

Thanks Ahead of time

Dianna


 
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
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
Run time error 1004 When running in 2003 Lakshman Excel Discussion (Misc queries) 10 January 17th 07 06:06 PM
Run time error 1004, General ODBC error [email protected] New Users to Excel 0 September 19th 05 01:41 AM
HELP!! Excel 2000 Copy of worksheet class failed run time Error 1004 Martin[_6_] Excel Programming 1 August 2nd 03 03:16 PM


All times are GMT +1. The time now is 09:43 PM.

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

About Us

"It's about Microsoft Excel"