How to create outlook 2003 profile in VBA

J

jinjin

I am doing a project migrate an Access 1997 application to Access 2003.
We use Citrix to publish the application.

There is one command Cmd.SendObject (....) to send out emails via
Outlook. In Access 1997, when users fist encounters this command, an
outlook profile creation window will be pop out for users to create
their email profile, ( users need to input exchange server name, user
name...). But when we run the same command in Access2003, no profile
creation window pops out. There is an error mssage 'No profiles have
been created. To create a new profile, use the Mail icon in the Control
Panel.'

In our plan, we don't publish Desktop and Outlook for each users. Then
users will have to call support to create profile for the first time
they want to use this application. There is a lot of support work
overhead.

Is there some code in VBA that I can put in Access2003 that I can lauch
Outlook Profile Creation if the system senses that the user has no
profile in place?

Thanks in advance.

JinJin
 
R

Roady [MVP]

No need; deploy a prf-file with the Outlook profile configuration settings.
You can find the prf-file creation wizard in the ORK.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
I am doing a project migrate an Access 1997 application to Access 2003.
We use Citrix to publish the application.

There is one command Cmd.SendObject (....) to send out emails via
Outlook. In Access 1997, when users fist encounters this command, an
outlook profile creation window will be pop out for users to create
their email profile, ( users need to input exchange server name, user
name...). But when we run the same command in Access2003, no profile
creation window pops out. There is an error mssage 'No profiles have
been created. To create a new profile, use the Mail icon in the Control
Panel.'

In our plan, we don't publish Desktop and Outlook for each users. Then
users will have to call support to create profile for the first time
they want to use this application. There is a lot of support work
overhead.

Is there some code in VBA that I can put in Access2003 that I can lauch
Outlook Profile Creation if the system senses that the user has no
profile in place?

Thanks in advance.

JinJin
 
J

jinjin

Roady,

I export the prf using ORK, then I use Outlook.exe /importprf command
to run, it did appear my desired profile.

My question is will it apply to all the users that has not logged in so
far? If no, how to apply?

Thank you for your help.

Jinjin
 
R

Roady [MVP]

Same trick works for any user indeed as long as you trigger it under their
useraccount context.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
Roady,

I export the prf using ORK, then I use Outlook.exe /importprf command
to run, it did appear my desired profile.

My question is will it apply to all the users that has not logged in so
far? If no, how to apply?

Thank you for your help.

Jinjin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top