Macro stupid queston

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

Moderator: 2020vision

Macro stupid queston

Postby simeoncohen » Mon Oct 19, 2015 1:03 pm

Hello

I have written a macro using

worksheet.change and target.address

The macro works fine and fires when cell i2 changes, however, when I link the spreadsheet to gruss it does not fire

Im sure its something simple

Can anyone help?

Thanks
simeoncohen
 
Posts: 2
Joined: Sun Aug 30, 2015 3:51 pm

Re: Macro stupid queston

Postby Captain Sensible » Mon Oct 19, 2015 1:38 pm

I'm very much a novice with VBA so usually go with the easiest option. Is there any reason why you don't use a simple IF statement rather than target.address? I thought I2 only ever contains the Inplay indicator so either Y or N, I'd just do something simple like

Code: Select all
If   Range("I2")>Value = "Y" Then

'Your code

Else

exit sub '?

End If


I know in the past I've been lost with the change/calculate stuff as some works with manual input rather than a formula change etc or it could be something as simple as you entering the target address value incorrectly, posting the actual target code would help rule out simple errors
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Macro stupid queston

Postby simeoncohen » Mon Oct 19, 2015 1:58 pm

Thank you for the reply

I2 is the balance and I am trying to carry out an action after a bet is placed

IT works if I manually change the value of I2 but not when linked into Gruss?
simeoncohen
 
Posts: 2
Joined: Sun Aug 30, 2015 3:51 pm

Re: Macro stupid queston

Postby Captain Sensible » Mon Oct 19, 2015 3:34 pm

Have you tried using worksheet_calculate instead or just monitor a separate cell with a simple formula I2*1 in it. Like I say I'm a novice with VBA but I do remember reading somewhere the coding you seem to be using will only trigger the vba manually.

Other options could be simply placing the balance in a variable and onitoring that for changes
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm


Return to Discussion

Who is online

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

cron