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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -