A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

opening Outlook with multiple profiles



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 20th 06, 08:18 PM posted to microsoft.public.outlook.program_vba
Judith
external usenet poster
 
Posts: 15
Default opening Outlook with multiple profiles

I am using
Set olApp = New Outlook.Application
but this seems to fail on a machine with multiple profiles. Any suggestions
please
  #2  
Old December 20th 06, 08:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default opening Outlook with multiple profiles

It shouldn't fail even with many profiles. I have 8 on my main development
machine for example. You should either open into the default profile or get
prompted as to which profile to open Outlook with.

Did you try CreateObject("Outlook.Application")?

Are you sure that something else isn't involved, such as a script stopper
from an A-V program or firewall that is preventing New or CreateObject from
working? Those are know to be able to do that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"judith" wrote in message
...
I am using
Set olApp = New Outlook.Application
but this seems to fail on a machine with multiple profiles. Any
suggestions
please


  #3  
Old December 21st 06, 08:13 AM posted to microsoft.public.outlook.program_vba
Judith
external usenet poster
 
Posts: 15
Default opening Outlook with multiple profiles

I have tried turning off the firewall etc but this machine doesnt seem to
like it. It never gets past the first Outlook statement. Could it be anything
to do with loaded libraries. I have DAO and outlook loaded, should i try
anything else.

It is fine if I use a docmd.sendobject from Access though

Thanks

"Ken Slovak - [MVP - Outlook]" wrote:

It shouldn't fail even with many profiles. I have 8 on my main development
machine for example. You should either open into the default profile or get
prompted as to which profile to open Outlook with.

Did you try CreateObject("Outlook.Application")?

Are you sure that something else isn't involved, such as a script stopper
from an A-V program or firewall that is preventing New or CreateObject from
working? Those are know to be able to do that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"judith" wrote in message
...
I am using
Set olApp = New Outlook.Application
but this seems to fail on a machine with multiple profiles. Any
suggestions
please



  #4  
Old December 21st 06, 02:45 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default opening Outlook with multiple profiles

All you need to automate Outlook is Outlook being installed and a reference
to that library in your VBA project. Even without the reference you can
still automate Outlook, you'd just have to use late binding.

The DoCmd.SendObject command doesn't directly use Outlook, it uses Simple
MAPI and that calls whatever the default MAPI provider is set to. It could
be Outlook, it could be Outlook Express, it could even be Eudora or any
other MAPI provider.

What error are you getting? Saying it fails really tells us nothing.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"judith" wrote in message
news
I have tried turning off the firewall etc but this machine doesnt seem to
like it. It never gets past the first Outlook statement. Could it be
anything
to do with loaded libraries. I have DAO and outlook loaded, should i try
anything else.

It is fine if I use a docmd.sendobject from Access though

Thanks


  #5  
Old December 21st 06, 09:07 PM posted to microsoft.public.outlook.program_vba
Judith
external usenet poster
 
Posts: 15
Default opening Outlook with multiple profiles

I get Runtime error 424 object required if that helps
thanks

"Ken Slovak - [MVP - Outlook]" wrote:

All you need to automate Outlook is Outlook being installed and a reference
to that library in your VBA project. Even without the reference you can
still automate Outlook, you'd just have to use late binding.

The DoCmd.SendObject command doesn't directly use Outlook, it uses Simple
MAPI and that calls whatever the default MAPI provider is set to. It could
be Outlook, it could be Outlook Express, it could even be Eudora or any
other MAPI provider.

What error are you getting? Saying it fails really tells us nothing.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"judith" wrote in message
news
I have tried turning off the firewall etc but this machine doesnt seem to
like it. It never gets past the first Outlook statement. Could it be
anything
to do with loaded libraries. I have DAO and outlook loaded, should i try
anything else.

It is fine if I use a docmd.sendobject from Access though

Thanks



  #6  
Old December 21st 06, 09:24 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default opening Outlook with multiple profiles

You get a 424 on code like this?

Dim olApp As Outlook.Application
Set olApp = New Outlook Application

or

Set olApp = CreateObject("Outlook.Application")

That would usually indicate that Outlook isn't correctly installed. If it
was an early binding reference problem then you'd get an error on the Dim
statement. If you get the error after the automation creation line it would
usually indicate that olApp was Nothing and something was preventing
creation of the object, such as a script stopper.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"judith" wrote in message
...
I get Runtime error 424 object required if that helps
thanks


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Profiles-One Calendar JBOLTWV Outlook - Calandaring 4 September 26th 06 01:21 PM
multiple profiles combined to one outlook file crimedawg Outlook - Installation 0 August 30th 06 05:39 AM
Microsoft Outlook 2003 - Multiple Profiles randy Outlook - Installation 2 June 28th 06 01:50 PM
outlook 2003 multiple profiles on W2K workstation [email protected] Outlook - General Queries 3 May 20th 06 03:30 PM
How do I have multiple profiles open an once matzkamis Outlook - Installation 5 January 26th 06 03:50 AM


All times are GMT +1. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.