Application.GetObjectReference (Outlook)

Creates a strong or weak object reference for a specified Outlook object.

This method returns a weak or strong object reference for the object specified in Item.

GetObjectReference (Item, ReferenceType)


Dim objGetObjectReference As Object
Set objGetObjectReference = GetObjectReference(Item:=, ReferenceType:=olStrong)

Arguments

The following arguments are required:

Item (Object) - The object from which to obtain a strong or weak object reference.

ReferenceType (OlReferenceType) - The type of object reference.

Possible return values are olStrong - Strong reference, olWeak - Weak reference.