A QTip titled Generate GUID posted about a year ago by Dani Vainstein (2008) showed how to generate a GUID (Global Unique Identifer) by means of a implementing the algorithm with a function or by using uuidgen.exe (a Microsoft utility).
However, you can also use the good services of a COM object called Scriptlet.TypeLib to accomplish the same task. The snippet below shows how.
<span style="color: #0000ff;">Set</span> TypeLib = CreateObject(<span style="color: #006080;">"Scriptlet.TypeLib"</span>)
NewGUID = TypeLib.Guid
Msgbox NewGUID




Recent Comments