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

Advice on importing contacts



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 27th 06, 05:36 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default Advice on importing contacts

I am looking for some general advice on how to accomplish a task. I
have a database of contacts in Microsoft Access. I want to write a VBA
script in Outlook to connect to this database and import these
contacts. The database isn't in the exact format I need, so I was
thinking of using ADO to connect to the database, creating a CSV the
way I need it on the fly, then importing that CSV into Outlook. I
would then like to deploy this script to several users in our company.
I am familiar enough with ADO, VBA, and the fileSystemObject to make
this work, but is this the best way to go about this? I also have no
idea how to deploy it. Thanks in advance for any advice.

  #2  
Old July 27th 06, 05:42 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Advice on importing contacts

No need to create a .csv. Just use ADO code to return the information from the database, then create new Outlook items, starting with the CreateItem() method.

Deploy? If this is for use by multiple people, then you should be creating a COM add-in, not using VBA. There is no supported method to deploy VBA code; see http://www.outlookcode.com/d/distributevba.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message oups.com...
I am looking for some general advice on how to accomplish a task. I
have a database of contacts in Microsoft Access. I want to write a VBA
script in Outlook to connect to this database and import these
contacts. The database isn't in the exact format I need, so I was
thinking of using ADO to connect to the database, creating a CSV the
way I need it on the fly, then importing that CSV into Outlook. I
would then like to deploy this script to several users in our company.
I am familiar enough with ADO, VBA, and the fileSystemObject to make
this work, but is this the best way to go about this? I also have no
idea how to deploy it. Thanks in advance for any advice.

  #3  
Old July 27th 06, 06:09 PM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 3
Default Advice on importing contacts

Deploy? If this is for use by multiple people, then you should be creating a COM add-in, not using VBA. There is no supported method to deploy VBA code; see http://www.outlookcode.com/d/distributevba.htm

I've dabbled in Visual Studio.net, but not a lot - would I be using
that and/or the Office Developer Kit to create the COM object?

  #4  
Old July 27th 06, 06:19 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Advice on importing contacts

Not "COM object" but COM add-in. You need VB6, Delphi, or Visual Studio. See:

http://www.outlookcode.com/d/comaddins.htm
http://www.outlookcode.com/vsto/

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

wrote in message ups.com...
Deploy? If this is for use by multiple people, then you should be creating a COM add-in, not using VBA. There is no supported method to deploy VBA code; see http://www.outlookcode.com/d/distributevba.htm


I've dabbled in Visual Studio.net, but not a lot - would I be using
that and/or the Office Developer Kit to create the COM object?

 




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
Advice on backup software wj Outlook Express 1 May 22nd 06 03:53 PM
I lost all inbox for the last 10 months. Any advice? Dr Burke Outlook - Calandaring 2 May 11th 06 03:39 AM
Archive advice needed Sla#s Outlook Express 8 February 17th 06 07:03 AM
I cannot open my LDAP directory. Advice? sugar baron Outlook - Using Contacts 1 February 16th 06 02:38 AM
Need advice re importing email address book from AOL to Outlook Teshera Outlook - General Queries 1 January 12th 06 01:15 AM


All times are GMT +1. The time now is 07: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.