When I attempt to run a macro now, I often encounter an error similar to the following:

- Macro Error on instantiating PCAN3.PCANClient object
- pcan-macro-error.gif (5.96 KiB) Viewed 5484 times
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")
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!