excel - VBA trouble with active-x reference -


i want program control printer. interface printer "legitronic" software "weber packaging solutions". in vba-activex manual written instance build followed:

for late binding:

dim mylabel object set mylabel = createobject("legi32.label") 

for binding:

dim mylabel legi32.label set mylabel = createobject("legi32.label") 

i referred type library of interface (my workmate told me right reference, because done program in past , worked him)

but everytime execute program run-time error '429': activex component can't create object.

i use ide of microsoft excel-worksheet macros (.xlsm)

do know problem or know, how solved?

thanks in advance!

i agree flohdieter binding.

early binding. try setting reference component trying use (legi32). if can't assign reference object, may have use regsvr32 ./somefile register on system. workmate may have registered on p.c. haven't. once can set reference should able compile code , use new - unless there's other issue component.

late binding. use createobject("somename"). when create component, assign id gets stored in registry. id can change due different versions. possible have different version installed , looking wrong name. suggest do, open registry , search 'legi32' , see if id has 1 or whatever @ end of name.


Comments