View Single Post
  #1  
Old March 19th 07, 11:28 PM posted to microsoft.public.outlook.program_vba
CES
external usenet poster
 
Posts: 10
Default Open Outlook's inbox with VBA

All,
I'm trying to open Outlook 2007 (Vista) using VBA but unfortunately I can't seem to get it to work. I have found different variations of the following:

Dim Olook As Outlook.Application
Set Olook = CreateObject("Outlook.Application")
Olook.Application.Visible = True

but when I attempt to run the code I get a VB compile error: "user defined type not defined."

Basically what I want to do is to open Outlook and go to the inbox. If anyone can help me with this I would be grateful, Thanks in advance. - CES
Ads