[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Autofill Field's In Outlook 2007 New Contacts

Posted on 2009-04-09
3
Medium Priority
?
389 Views
Last Modified: 2012-05-06
I'm using Microsoft Outlook for the first time for work, and I'm adding in a lot of contacts from my department. Is there a way to make it so it gives me an auto-complete option for a company I've listed before? Not to mention the other fields?

Also, can I make it automatically create contacts for anyone who sends me an email? Or anyone I email to?

Thanks
0
Comment
Question by:laneybeal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 24112327
Hi, laneybeal.

Outlook doesn't have an autocomplete for filling in contacts, but it does have an option for creating a new contact for another person from the same company.  Select a contact, then click Actions > New Contact from Same Company.  Outlook will create a new contact with all the company details filled in.

Outlook does not have the ability to automatically create contacts for messages you receive.  However, you can add that capability with a simple bit of scripting.  I can help with that if you're interested.
0
 
LVL 2

Author Comment

by:laneybeal
ID: 24112546
I'd love for some information on how to do that.

Thank you.
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24112836
Ok, here the code that does this.  Follow these instructions to use it.

1.  Start Outlook
2.  Click Tools > Macro > Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects
4.  If not already expanded, expand Modules
5.  Select an existing module (e.g. Module1) by double-clicking on it or create a new module by right-clicking Modules and selecting Insert > Module.
6.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
7.  Edit the code as needed.  I included comments wherever something needs to or can change
8.  Click the diskette icon on the toolbar to save the changes
9.  Close the VB Editor
10. Create a rule that fires for all messages
11. Set the rule's action to "run a script" and select this script as the one to run.
Sub AutoAddContact(Item As MailItem)
    Dim objContacts As MAPIFolder, _
        objContact As ContactItem, _
        objSelected As Selection, _
        objItem As Object, _
        objReply As MailItem, _
        objRecip As Recipient, _
        strAddress As String
    Set objContacts = Outlook.Application.Session.GetDefaultFolder(olFolderContacts)
    Set objContact = objContacts.Items.Find("[FullName] = " & Chr(34) & Item.SenderName & Chr(34))
    If TypeName(objContact) = "Nothing" Then
        Set objContact = Application.CreateItem(olContactItem)
        Set objReply = Item.Reply
        Set objRecip = objReply.Recipients.Item(1)
        If Err = 0 Then
            strAddress = objRecip.Address
            If strAddress = "" Then
                strAddress = objRecip.Name
            End If
        End If
        With objContact
            .Email1Address = strAddress
            .FullName = Item.SenderName
            .Body = "Record created automatically on " & Date & " at " & Time & " by BlueDevilFan's script."
            .Save
        End With
    End If
    Set objContact = Nothing
    Set objContacts = Nothing
    Set objSelected = Nothing
    Set objItem = Nothing
    Set objReply = Nothing
    Set objRecip = Nothing
End Sub

Open in new window

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question