RobertB
6th March 2007, 11:25
Hi all,
I've created an AFS "project" consisting of an Excel/VBA file and a custom session in Baan. All runs well on my test machine, where the following VBA code creates a VBA-global object:
Set oBaanObj = CreateObject("Baan.Application.SpecialServerLogin")
However, whe we came to install this Excel file on another machine where the "SpecialServerLogin" BWC client has also been configured, we encountered an error where the VBA oBaanObj object could not be initialized. Investigation quickly showed that, although the BWC had been configured by our admin correctly, the "Automation" tab-page on the BWC client configuration window revealed that the Class Name for this client had been saved as "Baan.Application.SpecialServerLogin.1" - note the ".1" at the end.
Firstly, we suspect that this fourth part to the class name is not accepable to the Excel/VBA "automation engine", and hence the object cannot be created; and secondly, that we have no idea where the ".1" comes from, and no idea of how to remove it, or prevent it from appearing in the Class Name.
The question is: has anybody else here come across this problem, and do they know how to fix it?
TIA,
Rob
I've created an AFS "project" consisting of an Excel/VBA file and a custom session in Baan. All runs well on my test machine, where the following VBA code creates a VBA-global object:
Set oBaanObj = CreateObject("Baan.Application.SpecialServerLogin")
However, whe we came to install this Excel file on another machine where the "SpecialServerLogin" BWC client has also been configured, we encountered an error where the VBA oBaanObj object could not be initialized. Investigation quickly showed that, although the BWC had been configured by our admin correctly, the "Automation" tab-page on the BWC client configuration window revealed that the Class Name for this client had been saved as "Baan.Application.SpecialServerLogin.1" - note the ".1" at the end.
Firstly, we suspect that this fourth part to the class name is not accepable to the Excel/VBA "automation engine", and hence the object cannot be created; and secondly, that we have no idea where the ".1" comes from, and no idea of how to remove it, or prevent it from appearing in the Class Name.
The question is: has anybody else here come across this problem, and do they know how to fix it?
TIA,
Rob