AddFromGuid Method

Microsoft Access Visual Basic

Show All

AddFromGuid Method

       

The AddFromGUID method creates a Reference object based on the GUID that identifies a type library. Reference object.

expression.AddFromGuid(Guid, Major, Minor)

expression   Required. An expression that returns one of the objects in the Applies To list.

Guid  Required String. A GUID that identifies a type library.

Major  Required Long.

Minor  Required Long.

Remarks

The GUID property returns the GUID for a specified Reference object. If you've stored the value of the GUID property, you can use it to re-create a reference that's been broken.

Example

The following example re-creates a reference to the Microsoft Scripting Runtime version 1.0, based on its GUID on the user's system.

References.AddFromGuid "{420B2830-E718-11CF-893D-00A0C9054228}", 1, 0