Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8493059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:54:10+00:00 2026-06-10T22:54:10+00:00

If I create an Outlook 2010 object In Excel VBA using Sub CreateOL() On

  • 0

If I create an Outlook 2010 object In Excel VBA using

Sub CreateOL()
    On Error Resume Next
        Set myOlApp = GetObject(, "Outlook.Application")
    If Err.Number = 429 Then
        Set myOlApp = CreateObject("Outlook.Application")
    End If
    On Error GoTo 0
End Sub

Is it possible to force myOLAPP to send/receive. Please can somebody advise how it’s done?

I’ve tried the following but it’s not working for me.

 Set nsp = myOlApp.GetNamespace("MAPI")
 Set sycs = nsp.SyncObjects
 For i = 1 To sycs.Count
    Set syc = sycs.Item(i)

    syc.Start

 Next

Also, how do I make myOlApp visible? myOlApp.Visible = True and myOlApp.Application.Visible = True doesn’t work

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:54:12+00:00Added an answer on June 10, 2026 at 10:54 pm

    Which Outlook version are you using? I tested this with Outlook 2010 and it works.

    NOTE: I have not done any error handling. I am sure you can take care of that.

    Public Sub Sample()
        Dim oLook As Object
        Dim nsp As Object, objSyncs As Object, objSync As Object
        Dim i As Long
    
        Set oLook = GetObject(, "Outlook.Application")
    
        Set nsp = oLook.GetNamespace("MAPI")
    
        Set objSyncs = nsp.SyncObjects
    
        For i = 1 To objSyncs.Count
            Set objSync = objSyncs.Item(i)
            objSync.Start
        Next
    End Sub
    

    MS Outlook has 2 types of windows

    1. Explorer for Folders and
    2. Inspector for individual items.

    If you want to show a particular folder, you can start the Explorer for it then either use .Activate or .Display. An alternative would be to use MAPIFolder.Display method as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m using VBA in Outlook 2010 and I’m trying to create a function that
I am using Visual Studio 2010 to create a Outlook 2010 Add In. I
I'm trying to create an Outlook 2010 Add-in with Visual Studio, and I'm having
I'm trying to create an Outlook 2010 Add-in with Visual Studio. Is it possible
Im trying to create an outlook 2010 addin. I just created the standard project,
I have created an Outlook addin using VS2010 and VSTO 4.0. On Windows7+Outlook 2010,
We use Outlook 2010 and receive emails with Excel attachments. We manually save the
I'm trying to create an Outlook 2010 addin that adds a new tab to
I'm creating outlook appointments using webdav. I'm using following post body to create the
Looking for a library to create outlook add-in's for outlook 2010, 2007 and outlook

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.