how to create contact in particular folder with VB.Net RRS feed

  • Question

  • We have an app that creates contacts in Outlook from QuickBooks.  I has been working for years.

    The problem is that it only creates them in 1 folder.

    There are several difference contract folders and we need to create the contacts in specific folders.

    I have not seen a way of doing this.

    We use

    OlContact = OutLookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olContactItem)
    then OLContact.Save() 

    SaveAs(pFolder) did not work.

    Using  OlContact.Account = pFolder did nothing

    pFolder is a string with the folder name i.e. 'Contacts -'

    What must I do to get the contact to be created in a particular folder (in pFolder)?


    I have not seen a way of doing this.

    • Moved by Perry-Pan Monday, October 29, 2018 4:47 AM
    Friday, October 26, 2018 11:55 AM

All replies

  • Hi,

    Thank you for visiting Outlook forum.

    As here we mainly focus on issues regarding Outlook client, I'm not familiar with VB. I'll help move this case to Outlook for Developers forum to get a better response.

    Thank you for your understanding and support.



    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact

    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Monday, October 29, 2018 4:46 AM
  • Instead of using OutLookApp.CreateItem( to create the new contact, use pFolder.Items.Add.

    Dmitry Streblechenko (MVP)
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, October 29, 2018 5:54 AM