C
CarolChi
Does anyone know if there are OS related differences in Outlook?
I'm trying to move to the next item in the Inbox.
The code below always works when Outlook is freshly opened.
When working in a TS session on 2003 Server SP1, and on Vista beta version
5219, the penultimate line returns a "type mismatch" when I have done
anything else in Outlook before running the code. It works fine when Outlook
has just been opened.
Dim oInbox As Outlook.MAPIFolder
Dim olApp As Application
Dim olNameSpace As NameSpace
Set olApp = CreateObject("Outlook.Application")
Set olNameSpace = olApp.GetNamespace("MAPI")
Set oInbox = olNameSpace.GetDefaultFolder(olFolderInbox)
Set ActiveExplorer.CurrentFolder = oInbox
Set olPop = Application.ActiveInspector.CommandBars.FindControl(, 360)
Set olCmd = olPop.Controls(1)
Carol
I'm trying to move to the next item in the Inbox.
The code below always works when Outlook is freshly opened.
When working in a TS session on 2003 Server SP1, and on Vista beta version
5219, the penultimate line returns a "type mismatch" when I have done
anything else in Outlook before running the code. It works fine when Outlook
has just been opened.
Dim oInbox As Outlook.MAPIFolder
Dim olApp As Application
Dim olNameSpace As NameSpace
Set olApp = CreateObject("Outlook.Application")
Set olNameSpace = olApp.GetNamespace("MAPI")
Set oInbox = olNameSpace.GetDefaultFolder(olFolderInbox)
Set ActiveExplorer.CurrentFolder = oInbox
Set olPop = Application.ActiveInspector.CommandBars.FindControl(, 360)
Set olCmd = olPop.Controls(1)
Carol