Worksheet _Change

Please post any questions regarding the program here.

Moderator: 2020vision

Worksheet _Change

Postby peternugent50 » Fri Oct 29, 2010 9:38 pm

Hi, I am trying to put some basic VBA onto my spreadsheet. I have entered the below code, and when I manually update cell F2 to "Closed" the code works.

If I wait for BA to update the cell with the same text there is no response. Is there something I need to enable to allow the Worksheet _Change to operate when BA updates my spreadsheet?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$2" Then

If [$F$2].Value = [$A$100].Value Then

Range("Q2").Select
ActiveCell.FormulaR1C1 = "-1"

Range("T5:Y54").Select
Selection.ClearContents

End If
End If

End Sub
peternugent50
 
Posts: 6
Joined: Wed Oct 27, 2010 3:11 pm

Postby MarkRussell » Sat Oct 30, 2010 7:29 am

User avatar
MarkRussell
Site Admin
 
Posts: 1793
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Postby peternugent50 » Thu Nov 04, 2010 12:40 am

Thanks Mark, all sorted!

Peter
peternugent50
 
Posts: 6
Joined: Wed Oct 27, 2010 3:11 pm


Return to Help

Who is online

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