09-06-2018 05:58 AM - edited 09-06-2018 06:00 AM
Hello,
I want to write a macro using VBA and TestStand API. I'm trying to get an Engine object. I created an TestStand Engine Class ActiveX control. In it's Sub procedure I have a following code:
Dim eng As Engine eng.NewSequenceFile
This Sub I'm calling from another Sub and I'm getting an error: Object variable or With block variable not set. Do you know how it should be done?
12-07-2018 01:19 PM
Hi,
Try using
Dim eng As New Engine
That should work.
Thanks,
Armen