VBA Excel in BA

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
1856
Posts: 108
Joined: Wed Dec 16, 2009 12:42 am

Hi Does anyone know if you can write VBA script within BA or only via a connection to excel?

Im wanting to simplify a trigger that places bets based on the current market book % and have 20 individual triggers trying to cover different market prices.

As always appreciate any advice.

Thanks
Michael
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

1856 wrote:
Thu Sep 30, 2021 2:09 am
Hi Does anyone know if you can write VBA script within BA or only via a connection to excel?

Im wanting to simplify a trigger that places bets based on the current market book % and have 20 individual triggers trying to cover different market prices.

As always appreciate any advice.

Thanks
Michael
VBA is a Microsoft product associated with the Office suite. BA doesn't actually have anything to do with VBA, it connects to Excel spreadsheets and writes data/reads instructions directly to/from the worksheet cells. VBA communicates with BA by writing to the cells, so you have to connect to Excel.
1856
Posts: 108
Joined: Wed Dec 16, 2009 12:42 am

Ok got it thanks, I might be using the wrong terminology ( VBA ) Can you write an IF type statement in BA?
Thanks
User avatar
ODPaul82
Posts: 824
Joined: Sun May 08, 2011 6:32 am

You can do conditional statements which replicate IF & AND by using the start/end group of conditions in the rules editor
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

...and you can replicate GOTOs by conditions/signals/rule with condition that fires when signal is set. There comes a level of complexity though, where it may be easier to write VBA subs.
1856
Posts: 108
Joined: Wed Dec 16, 2009 12:42 am

Ok thanks guys Im starting to understand more, I probably need to rethink this?

Appreciate all your suggestions.

Cheers
Michael
Post Reply

Return to “Bet Angel - Automation”