gruss-software.co.uk Forum Index The Ultimate Betting Exchange Software
gruss-software.co.uk
FAQ  FAQ   Search  Search   Memberlist  Memberlist   Usergroups  Usergroups
Register  ::  Log in Log in to check your private messages


Post new topic  Reply to topic
 Probs communication Excel <--> BA « View previous topic :: View next topic » 
Author Message
Fiets
PostPosted: Wed Mar 07, 2012 10:38 am    Post subject: Probs communication Excel <--> BA Reply with quote



Joined: 07 Mar 2012
Posts: 5

Hello,

I'm a new user and I'm testing some excel features.

If I try to cancel my orders via excel with a test sheet from the internet I always get the same VBA Debug Error ("ba.cancelAllBets") cannot be found.

It looks like VBA doesn't understand the BettingAssistantCom.ComClass language.

I checked the References (VBA --> Tools --> References) and BettingAssistantCom is checked there.


Please can somebody help?
Back to top
View user's profile Send private message
neeeel
PostPosted: Wed Mar 07, 2012 1:02 pm    Post subject: Reply with quote



Joined: 27 Jun 2010
Posts: 53

which version of gruss are you using?
Back to top
View user's profile Send private message
Fiets
PostPosted: Wed Mar 07, 2012 11:09 pm    Post subject: user ver 1.1.0.66x82 Reply with quote



Joined: 07 Mar 2012
Posts: 5

I'm using BA software user ver 1.1.0.66x82

and Excel 2010

cheers
Back to top
View user's profile Send private message
neeeel
PostPosted: Thu Mar 08, 2012 1:03 am    Post subject: Reply with quote



Joined: 27 Jun 2010
Posts: 53

ok, thought it might be because you were using a really old version of gruss. Can you tell us the exact error message that comes up, and the line of code where it is used
Back to top
View user's profile Send private message
Fiets
PostPosted: Thu Mar 08, 2012 8:39 am    Post subject: error Reply with quote



Joined: 07 Mar 2012
Posts: 5

Dim WithEvents ba As BettingAssistantCom.ComClass
------------------------------------------------------------------------------
Private Sub CommandButton4_Click()
result = ba.cancelAllBets
End Sub
-------------------------------------------------------------------------------


The 'result = ba.cancelAllBets' gets yellow
Back to top
View user's profile Send private message
neeeel
PostPosted: Thu Mar 08, 2012 1:03 pm    Post subject: Reply with quote



Joined: 27 Jun 2010
Posts: 53

what is the exact error message you are getting
Back to top
View user's profile Send private message
Fiets
PostPosted: Fri Mar 30, 2012 3:28 pm    Post subject: Reply with quote



Joined: 07 Mar 2012
Posts: 5

Sorry for the late reaction and miss communication.

My question is this.

is is possible to make an excel macro that will cancel all bets that are in the market (and of cource unmatched)

if so, how does that macro look like (VBA)

kind regards
Back to top
View user's profile Send private message
MarkRussell
PostPosted: Fri Mar 30, 2012 5:05 pm    Post subject: Reply with quote

Site Admin

Joined: 20 Feb 2007
Posts: 755
Location: Birmingham

Hi,

If you get the Beta version there is a trigger that wil cancel all unmatched bets in the market:-
CANCEL-ALL-MARKET

You just need to ensure that there is something in the Bet Ref column on the row where you use the trigger.
It doesn't have to be a valid bet ref you could just DUMMY for example.

Regards,
Mark
Back to top
View user's profile Send private message Visit poster's website
Fiets
PostPosted: Mon Apr 02, 2012 8:54 am    Post subject: Reply with quote



Joined: 07 Mar 2012
Posts: 5

@ MarkRussell

Tanks for your help, it is working great now

Fiets
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


DAJ Glass (1.0.8) template by Dustin Baccetti
EQ graphic based off of a design from www.freeclipart.nu
Powered by phpBB © 2001, 2005 phpBB Group