+ Reply to Thread
Results 1 to 3 of 3

how to make excel open outlook inbox

  1. #1
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 365 enterprise
    Posts
    191

    how to make excel open outlook inbox

    hi all
    i have some code that when command button is press it open's my inbox i have some code but keep getting compile error variable not defined here my code i have highlighted the code were it stops with error in red
    Please Login or Register  to view this content.
    thanks for your help in advance

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to make excel open outlook inbox

    Code works fine for me. Most likely issue is you don't have a reference to the Microsoft outlook library so it doesn't know what olFolderInbox is.

    Does it work if you have:
    Dim olApp As Object ' Outlook.Application
    Set olApp = CreateObject("Outlook.Application")
    olApp.Session.GetDefaultFolder(6).Display

  3. #3
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 365 enterprise
    Posts
    191

    Re: how to make excel open outlook inbox

    work Great thanks Legend!!!!!!!!!

+ 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. Outlook to Excel - list of inbox
    By siray13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2012, 12:27 AM
  2. Excel 2007 : Linking Excel to Outlook inbox (replies)
    By ppompili in forum Excel General
    Replies: 0
    Last Post: 10-13-2011, 02:22 PM
  3. Copying all the emails from Outlook inbox plus subfolders to excel
    By stuartjohnwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 06:30 AM
  4. Select Outlook inbox plus sub folders and export to excel.
    By stuartjohnwood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2011, 04:10 AM
  5. Copying all the emails from Outlook inbox plus subfolders to excel
    By radical.excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-04-2011, 10:42 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