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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

javascript - Bootstrap Popover: iOS Safari strange behaviour -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -