+ Reply to Thread
Results 1 to 8 of 8

Import File To Outlook From Excel With Mapping

  1. #1
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Import File To Outlook From Excel With Mapping

    Hi

    Some time ago, I found a macro on the web that would import a file from Excel into Outlook. The macro included "mapping code" such that you could map Excel columns to Outlook fields. I had a system crash and lost that code. I believe it ran from Outlook and not Excel.

    Do any of you have an idea if that type of code is available?

    John
    Last edited by jaslake; 06-16-2010 at 10:10 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Import File To Outlook From Excel With Mapping

    I don't know of any general purpose code but if you post a description of what you are trying to achieve someone may have an answer for you.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Import File To Outlook From Excel With Mapping

    Hi tony h

    I recently found this code at http://www.codeforexcelandoutlook.co...ba-automation/

    It does what I want but it writes the contacts to the default Contacts file. I'd like to do one of two things:

    Modify the code to add a Contacts file from user input, create the file and then write the records to that file, or

    Simply specify in the code the file name that the contacts are to be written to.
    Please Login or Register  to view this content.
    I also found this code at http://forums.techguy.org/business-a...nto-new-2.html

    Same questions regarding modification.

    Please Login or Register  to view this content.
    Any ideas?

    John

  4. #4
    Registered User
    Join Date
    11-09-2008
    Location
    germany
    Posts
    74

    Re: Import File To Outlook From Excel With Mapping

    Quote Originally Posted by jaslake View Post
    Hi tony h

    I recently found this code at http://www.codeforexcelandoutlook.co...ba-automation/

    It does what I want but it writes the contacts to the default Contacts file. I'd like to do one of two things:

    Modify the code to add a Contacts file from user input, create the file and then write the records to that file, or

    Simply specify in the code the file name that the contacts are to be written to.
    Do you mean that you want them to be able to choose the Contacts FOLDER and not put it into the default one?

    If yes then I think you are going to need to put in there this method to allow them to choose

    http://msdn.microsoft.com/en-us/libr...ice.11%29.aspx

    Once you have your Folder which is what the obove will result in, then you add a contact to this folder.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Import File To Outlook From Excel With Mapping

    Hi darbid and tony h

    Thanks forr your input. I've spent MANY hours on this project and have finally resolved it to what I want to do. The code creates an Outlook contacts file from an Excel data file then manipulates the Outlook contacts file such that it uploads the file into a named contacts file in Outlook and creats a distribution list in the named contacts file for those contacts that have an Email address. It also provides for up to two Email addresses for each contact (I suppose this could be expanded).

    I'm including the code in the event others may have similar issues

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Hope this helps someone.

    John

  6. #6
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Import File To Outlook From Excel With Mapping

    Dear J ,
    I can use the following code to creat distribution list for my customers also ...Like I have 325 customers in my portfolio and I can creat a distribution list ...When I am tryin to run this code ...it's not executing ...can u advice ..
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Hope this helps someone.

    John[/QUOTE]

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Import File To Outlook From Excel With Mapping

    @nuttycongo123,

    Your post does not comply with Rule 2 of our Forum RULES.
    Don't post a question in the thread of another member -- start your own thread.
    If you feel another thread is particularly relevant, provide a link to it within your own.

  8. #8
    Forum Contributor nuttycongo123's Avatar
    Join Date
    01-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Import File To Outlook From Excel With Mapping

    Quote Originally Posted by DonkeyOte View Post
    @nuttycongo123,

    Your post does not comply with Rule 2 of our Forum RULES.
    Don't post a question in the thread of another member -- start your own thread.
    If you feel another thread is particularly relevant, provide a link to it within your own.
    @ Sorry D ,
    It was done in error ,no harm /hijacking intended ..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1