new vs createObject
With new
, the VBA runtime knows the CLSID (class id) when the object is created.
With
createObject
, the runtime first has to look up the CLSID via the
progId in the
registry.
new
returns the default
COM interface which is specified in the respective typelib.