Cannot run macro - error on instantiating PCAN3.PCANClient
Posted: Wed 19. Dec 2018, 21:16
When I attempt to run a macro now, I often encounter an error similar to the following:
I've isolated the error to the inclusion of the CreateObject() call that instantiates the object:
The error isn't very descriptive so I'm not sure why it's tripping on this.
In VB (but not VBA), I could instantiate the object using early binding (e.g. Dim MyClient As New PCAN3.PCANClient) but this does not work in VBA, both of which I'm quite rusty at!
Any insights would be greatly appreciated!
This started happening after I set up PCAN Explorer 5 on my new Windows 10 machine. It was never an issue when I was running Windows 7. I'm not sure if that's a factor, but thought I'd mention it.I've isolated the error to the inclusion of the CreateObject() call that instantiates the object:
Code: Select all
Dim MyClient
Set MyClient = CreateObject("PCAN3.PCANClient")
In VB (but not VBA), I could instantiate the object using early binding (e.g. Dim MyClient As New PCAN3.PCANClient) but this does not work in VBA, both of which I'm quite rusty at!
Any insights would be greatly appreciated!