Results 1 to 2 of 2

Thread: Trying to connect to Outlook (Office 365) using Visual Basic 6

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2022
    Posts
    1

    Question Trying to connect to Outlook (Office 365) using Visual Basic 6

    I used to be able to reference MSOUTL.OLB and still can from Office 16 folder - keep in mind we have Office 365 and have had for a few years - but now am getting the following message when trying to run code

    Message: Interface Not Registered

    Code

    Dim oOutlook As New Outlook.Application

    Dim oMailItem As MailItem



    Set oMailItem = oOutlook.CreateItem(olMailItem)

    Has always worked but now not. Do I need to reference anything else or register this somehow ?

    TIA

    Lee

  2. #2
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,140

    Re: Trying to connect to Outlook (Office 365) using Visual Basic 6


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width