declare the object variable myOutlook and then assign to it a reference to an Outlook.Application object: : Outlook « Outlook « VBA / Excel / Access / Word






declare the object variable myOutlook and then assign to it a reference to an Outlook.Application object:

 
Sub obj()
    Dim myOutlook As Object
    Set myOutlook = CreateObject("Outlook.Application")
End Sub
          

 








Related examples in the same category

1.The GetOutlook Function