com error

Please post any questions regarding the program here.

Moderator: 2020vision

com error

Postby alrodopial » Sun Nov 29, 2015 9:28 pm

Garry any ideas why?

I have a excel file two years old that was working ok , so I stored it for further use
In ba I open 3 tabs and link them to 3 workbooks
In all excel files I have in the code:
Code: Select all
Dim WithEvents ba As BettingAssistantCom.ComClass
......
If ba Is Nothing Then
        Set ba = New BettingAssistantCom.ComClass
        ba.tabIndex = 2
End If

(the tabindex changes accordingly)
The first two files are working ok for some time now ( com and everything else)(files that are different to the old one)
I link the third file ( the old two years file) today and I get the error:
object or class does not support the set of events"
and the line:
Set ba = New BettingAssistantCom.ComClass
is highlighted
The vba reference to ba com is enabled
Any ideas whats wrong?
I don't get it since for me it looks like that the relative/required code is same in the three workbooks
(or I'm missing something)
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Re: com error

Postby osknows » Mon Nov 30, 2015 11:52 am

you might need to register the COM, try typing the following two line in the Command Prompt (Admin)

Code: Select all
cd C:\Windows\Microsoft.NET\Framework64\v2.0.50727


Code: Select all
regasm /codebase "c:\program files (x86)\Betting Assistant\BettingAssistantCom.dll"
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Re: com error

Postby alrodopial » Mon Nov 30, 2015 8:08 pm

It said that something was successfully registered but nothing changed
I tried the same file at different pc and I got the same error

If I dont find a solution soon I will recode the file from the start hoping that the new will communicate with the com correctly
Thanks os
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

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