open market using com ?

Please post any questions regarding the program here.

Moderator: 2020vision

open market using com ?

Postby alrodopial » Mon Feb 17, 2014 10:02 pm

Hi,
I need help here guys,
I want from excel to open/create a new sheet, open a new tab/market in ba using the bf's market id and com (id already stored ie in a cell), link the new market from ba into new sheet.
If possible, link the same market into cell ieA20 also (using com and id)
If possible, close the market tab in ba ( using com)

The goto:id may work but you have to manually link the sheet first (?)

Any ideas?
alrodopial
 
Posts: 1386
Joined: Wed Dec 06, 2006 9:59 pm

Postby alrodopial » Tue Feb 18, 2014 9:00 pm

A small progress:
I open ie 5 tabs in ba, link them into 5 sheets in excel and then with the below:
Code: Select all
Dim WithEvents ba As BettingAssistantCom.ComClass
Sub ddddddd()
    If ba Is Nothing Then
        Set ba = New BettingAssistantCom.ComClass
        ba.tabIndex = 0
    End If
    ddd = ba.openMarket(112818210, 1)
End Sub


I open the market I want in the correct tab - tabIndex = ??? must be the correct number.
Markets are already linked into excel sheets so trigger betting is ok.

1. why do I have to set a variable to ba.openMarket and not just ba.openMarket ?
2. How can I open a market at cell A20?
3. Is there a way to close a market in ba using com? - no need for further data requests -
alrodopial
 
Posts: 1386
Joined: Wed Dec 06, 2006 9:59 pm

Postby alrodopial » Fri Feb 21, 2014 5:41 pm

Ok, how do I call the macro I posted?

I want to call it from a normal module and

1. If I place it in an object module it can not be called (sub not defined)

2. If I place it in a normal module the ba can not be defined (user defined type can not be defined)
alrodopial
 
Posts: 1386
Joined: Wed Dec 06, 2006 9:59 pm


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.