COM/VBA help would be appreciated

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

Moderator: 2020vision

COM/VBA help would be appreciated

Postby tradeaj71 » Wed Feb 12, 2020 1:41 am

Put simply, I want to extract/identify the price (requested odds) of my current unmatched bets without having to use a MyBets worksheet.

I have the COM interface enabled and have attempted some simple VBA code to get an =getBet funtion:

Function getBet(ref As String)
getBet = ba.getBet(ref)
End Function

Not surprisingly, to me :), this doesn't work and I get a formula result which reads

"BettingAssistantCom.Application.BetDetail"

I realise that the BetDetail is an object with multiple fields and this is probably the reason why I get the result I do. I would be very grateful if someone could help with the VBA code that would either

extract the price field within BetDetail (preferred) or
extract all fields to a specified range of cells.


Many thanks in advance.
Just plugging away!
tradeaj71
 
Posts: 26
Joined: Tue Nov 12, 2013 6:16 pm
Location: United Kingdom

Re: COM/VBA help would be appreciated

Postby alrodopial » Sat Feb 15, 2020 8:25 am

Mark posted elsewhere

"You can download the following Excel file which has example code for all of the COM functions.

See http://www.gruss-software.co.uk/Excel/T ... A_Com.xlsm
alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm

Re: COM/VBA help would be appreciated

Postby tradeaj71 » Sun Feb 16, 2020 11:33 am

Thanks for your reply. That workbook is great but doesn't demonstrate quite what I need in terms of getBet.

Mark is helping me find a solution.
Just plugging away!
tradeaj71
 
Posts: 26
Joined: Tue Nov 12, 2013 6:16 pm
Location: United Kingdom


Return to Discussion

Who is online

Users browsing this forum: No registered users and 18 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.