Flashing cell!

Please post any questions regarding the program here.

Moderator: 2020vision

Flashing cell!

Postby danjuma » Mon Feb 08, 2010 8:13 pm

Hello,

Just wondered if anybody has a macro code for making a cell flash when a condition is met. For example, cell A11 flashes in red when cell B7 = cell K8, and stop flashing when B7 no longer equals cell K8.

Many thanks.
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby silver » Tue Feb 09, 2010 1:01 am

Can't help with code, but you could do this clumsily with conditional formatting...

You'd need a cell that counts the passage of time in seconds. For example, use this formula (posted on the forum by Gary) to convert the data from the countdown clock in D2 to seconds:

=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))

Now, in your conditional formatting formula, include a requirement that the last/rightmost digit of that second-counting cell must be 2,4,6,8 or 0. That should make the conditional formatting flash on and off each second when the other criteria are met.

Silver
silver
 
Posts: 42
Joined: Thu Sep 03, 2009 10:50 am

Postby mak » Tue Feb 09, 2010 5:41 am

mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby danjuma » Tue Feb 09, 2010 9:44 pm

Thanks silver and mak. Will have look at your suggestions.

Cheers.
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby Ian » Tue Feb 09, 2010 10:20 pm

Wouldn't using a macro to make the a cell flash prevent you updating any cells ?
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby danjuma » Wed Feb 10, 2010 12:33 am

Ian wrote:Wouldn't using a macro to make the a cell flash prevent you updating any cells ?


Ha Ian,

You might be right. I did find some macro code on the web which I modified and used to test and I must say it did behave funny when connected to BA. Anyway, I think I will forgo the flashing cell business for now and just settle for the cell background to be filled and a sound to be played (I think I have a macro for the sound bit)

Cheers
Dan
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby osknows » Wed Feb 10, 2010 12:33 am

You could cheat....assume you want cell A1 to flash if B1 is true

In A1 enter =IF(B1=TRUE,MOD(SECOND(NOW()),2)=0,FALSE)

then set the conditional format of cell A1 to whatever colour you want if A1 =TRUE
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby osknows » Wed Feb 10, 2010 12:35 am

Sorry, should have said this will only change colour after each re-calc
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 31 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.