Re: CDO 1.21 and Outlook
From: Andrew Cushen (anonymous_at_discussions.microsoft.com)
Date: 02/20/04
- Next message: Sue Mosher [MVP-Outlook]: "Re: VBA add-in disabled on startup of Outlook"
- Previous message: Bart F.: "RE: How to tell if Word is the email editor?"
- In reply to: Mike Lowery: "CDO 1.21 and Outlook"
- Next in thread: Mike Lowery: "Re: CDO 1.21 and Outlook"
- Reply: Mike Lowery: "Re: CDO 1.21 and Outlook"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Feb 2004 10:27:29 -0800
Mike-
Have you tried commenting out the logon line? You
shouldn't need it if you're always logged into Outlook
before the code runs.
-Andrew
================================================
>-----Original Message-----
>I've got some code that creates a MAPI.Session object and
then logs on to the Exchange mail server:
>
>Dim oSession As MAPI.Session
>Set oSession = New MAPI.Session
>oSession.Logon ProfileName:="MS Exchange Settings",
NewSession:=False
>
>This is being done within Outlook using VBA. It works,
but the problem is that the .Logon method takes about a
half minute to
>execute. Since I'm already logged in to Outlook using
this profile, is there any way to attach the session to
the existing session
>instead of creating a new one? The NewSession:=False
sounds like it does this, but the 30 second delay tells me
otherwise (I
>think?)
>
>Anyone know how to get rid of this delay?
>
>
>
>.
>
- Next message: Sue Mosher [MVP-Outlook]: "Re: VBA add-in disabled on startup of Outlook"
- Previous message: Bart F.: "RE: How to tell if Word is the email editor?"
- In reply to: Mike Lowery: "CDO 1.21 and Outlook"
- Next in thread: Mike Lowery: "Re: CDO 1.21 and Outlook"
- Reply: Mike Lowery: "Re: CDO 1.21 and Outlook"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|