VBA Outlook TypeLib.GUID "Object required" -
i'm trying run simple code in outlook 2013. it's simple copy/paste the scripting guys website.
sub testguid() set typelib = createobject("scriptlet.typelib") wscript.echo typelib.guid end sub
running code throws "object required" exception. typelib.guid method doesn't seem known. runs excel. why ?
br, nico
you need declare local variable first, example:
sub testguid() dim typelib object set typelib = createobject("scriptlet.typelib") wscript.echo typelib.guid end sub
Comments
Post a Comment