+ Reply to Thread
Results 1 to 3 of 3

Checking to see if Outlook is open

  1. #1
    Registered User
    Join Date
    12-25-2004
    Posts
    61

    Checking to see if Outlook is open

    I am currently using the following to open Outlook using VBA:

    Please Login or Register  to view this content.
    How can I first check to see if Outlook is already open? (I don't want to open multiple instances)

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello djvice,

    You can use GetObject to test if an instance of a object has been created.
    Please Login or Register  to view this content.
    Note: GetObject will not detect instances of an object created in VBA code. If you start Outlook from VBA then GetObject will always return an error.

    Sincerely,
    Leith Ross

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Have a look at the entry for the GetObject Function in Excel help.
    Martin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Open Outlook from Excel
    By littlethief in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2008, 02:43 PM
  2. Checking To See If File Is Already Open
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-12-2008, 11:54 AM
  3. Checking for Open Workbook
    By DonovanKB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2008, 09:55 PM
  4. Replies: 1
    Last Post: 01-21-2008, 08:07 PM
  5. Check to see if outlook is open
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2007, 02:27 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1