VBA help - record last odds requested

Please post any questions regarding the program here.

Moderator: 2020vision

VBA help - record last odds requested

Postby ladders » Sat Oct 20, 2007 1:30 am

hi there,

I am using Excel triggered betting and would like to be able to record the last odds at which i tried to lay a selection.

My understanding is that a macro which would copy the odds i have requested to lay when the instruction cell says 'LAY' would do the job.

I'm sure i have managed this successfully in the past but this was a long time ago and it doesn't seem to work now.

I am good with excel formulas but useless with VBA, can anyone let me know how i can do the above?

thanks,
Paul
ladders
 
Posts: 11
Joined: Wed Jan 17, 2007 1:43 am

Postby ladders » Wed Oct 24, 2007 2:52 pm

Can anyone tell me why this VBA doesn't work? - i'm sure i have managed to trigger macros before with the top code but it doesn't seem to work now.

In the code window for the sheet to which the data is going, i have the following:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False

Run "CopyRtoZ"

Application.EnableEvents = True

End Sub

In Module1 i have:

Sub CopyRtoZ()
'
' CopyRtoZ Macro
'
Range("R5:R6").Select
Selection.Copy
Range("Z5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub

I don't understand why the above does not trigger a copy of the odds i am requesting (in R5 and R6) to Z5 and Z6.

I can't seem to get any macro to trigger with the top bit of code - has the number of target columns changed?

thanks,
Paul
ladders
 
Posts: 11
Joined: Wed Jan 17, 2007 1:43 am

Postby ladders » Wed Oct 24, 2007 4:22 pm

i believe i've solved the problem - it was my anti virus software stopping the triggering of worksheet change macros in Excel 2007.
ladders
 
Posts: 11
Joined: Wed Jan 17, 2007 1:43 am

Postby ladders » Wed Oct 24, 2007 4:43 pm

well, it worked once then stopped again. i cant get any worksheet change macros to work now - anyone know how i can disable all security settings so i can eliminate these from being the issue?
ladders
 
Posts: 11
Joined: Wed Jan 17, 2007 1:43 am

Postby Ian » Wed Oct 24, 2007 5:49 pm

Tools -> Macro - > Security and set the level to low ?

Not sure this will work for you, but I had a similar problem when I installed Excel on a new machine. Kept wanting to virus check any workbook with a macro.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham


Return to Help

Who is online

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