taigovinda
Well-known Member
- Joined
- Mar 28, 2007
- Messages
- 2,639
Hi,
I am trying to automate a process, and the problem I have is that an add-in (SAP Bex 7) has a memory leak or something like that... I want to have Excel run a few Bex 7 queries and export the results. However, when I do this either manually or via code, it is fine for the first one, or maybe two or three, queries, and then bogs down quite a bit and/or fails. (Fine = less than 3 minutes, bogs down quit a bit = 45 minutes.) I am able to get around this by shutting out of Excel *completely* and then re-opening, then it performs like normal for the first query or two. I don't think I can do anything about the performance of the add-in, so I'd rather find a way to automate the work-around of opening a session, letting the code run, closing the session, opening another session, etc.
So my question: is there a way that I can automatically have Excel:
1. Open a particular book in a *new session*
2. Wait while all the code executes pursuant to that book's Open event
3. Close the new session completely
4. Loops steps 1 thru 3
Thanks for the help!
Tai
I am trying to automate a process, and the problem I have is that an add-in (SAP Bex 7) has a memory leak or something like that... I want to have Excel run a few Bex 7 queries and export the results. However, when I do this either manually or via code, it is fine for the first one, or maybe two or three, queries, and then bogs down quite a bit and/or fails. (Fine = less than 3 minutes, bogs down quit a bit = 45 minutes.) I am able to get around this by shutting out of Excel *completely* and then re-opening, then it performs like normal for the first query or two. I don't think I can do anything about the performance of the add-in, so I'd rather find a way to automate the work-around of opening a session, letting the code run, closing the session, opening another session, etc.
So my question: is there a way that I can automatically have Excel:
1. Open a particular book in a *new session*
2. Wait while all the code executes pursuant to that book's Open event
3. Close the new session completely
4. Loops steps 1 thru 3
Thanks for the help!
Tai