High CPU when using Excel with conditional formatting

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

High CPU when using Excel with conditional formatting

Postby greenfingers » Sat Feb 27, 2010 11:40 am

Hi, this isn't a problem directly to do with BA but I wonder if anyone out there can help! I have a really simple Excel spreadsheet connected to Gruss and was getting really high (average 25% but goes higher) CPU for Excel alone showing in my Task Manager.

I realised that it wasn't actually the workbook connected to Gruss that was causing the high CPU but another workbook I also have open at the same time which ISN'T connected to gruss, it is 'freestanding' if you like. This other workbook I use for logging the results of each market I trade and has loads of other info. Here's the thing I found, the high CPU is being caused by the conditional formatting I have on this sheet.

If I don't have Gruss connected to the first workbook, this CPU issue doesn't happen. Also, if I switch to a blank sheet in the workbook with the formatting then it doesn't happen.

It's as if by having one workbook updated by Gruss, Excel is taking it upon itself to re-evaluate all the conditional formatting in the other workbook too, even though that workbook isn't connected to Gruss!!!!

Hope this makes sense, it's really annoying because my CPU is maxing out at 100% sometimes during races which is a bit hairy!

Anyone know how I can stop Excel from evaluating the conditional formatting in this spreadsheet whilst it's not actually being edited???! I could switch to a blank sheet before every race, but I'd rather solve the problem! Any ideas, please:?:
User avatar
greenfingers
 
Posts: 214
Joined: Mon Mar 23, 2009 3:10 pm

Postby silver » Sat Feb 27, 2010 12:21 pm

Try opening the 'problem' worksheet in a second instance of Excel and in the options, set calculation for that instance of Excel to manual. That should prevent recalculation in the Gruss sheet (which is presumably set to automatic calculation) from prompting recalculation in the 'problem' sheet, which is what I think may be happening.

In the instance of Excel set to manual calculation you could use code to get it to manually calculate at set intervals - every 5 secs, 30 mins whatever. That would leave calculation 'automated' within that sheet but reduce the CPU load. Otherwise you can just manually make the sheet calculate when necessary.
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby greenfingers » Sat Feb 27, 2010 1:05 pm

Hey thanks for your reply Silver! I never even thought of opening another Excel instance, doh! :oops: Maybe it's my Macintosh upbringing!

Anyhow, I tried your suggestion and you already had the solution at halfway! The problem is solved by having the workbook with the conditional formatting open in another Excel instance - even with automatic calculation turned on the CPU problem no longer occurs.

Many thanks, you've saved me a lot of head scratching and CPU overloads! :D
User avatar
greenfingers
 
Posts: 214
Joined: Mon Mar 23, 2009 3:10 pm

Postby silver » Sat Feb 27, 2010 1:29 pm

Happy to hear that, Greenfingers.

Glad you haven't had to compromise your conditional formatting, I'm a big fan of it myself :D
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby greenfingers » Mon Mar 01, 2010 8:50 am

Yup, I've got 31 'conditions' on that sheet. It just wouldn't be the same without them!!!

CPU is now about 5% for the workbook linked to Gruss and 0% for the other. I've got enough CPU left over to run my screen recording software and still have plenty to spare. Result! :D
User avatar
greenfingers
 
Posts: 214
Joined: Mon Mar 23, 2009 3:10 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 65 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.