Solved

command line switch to search for contact

Posted on 2004-03-30
4
306 Views
Last Modified: 2010-04-08
Are there unlisted switches or a simple vb thing that would open outlook and search for a (passed-parameter) contact?
0
Comment
Question by:hishopper
  • 2
  • 2
4 Comments
 
LVL 49

Expert Comment

by:sunray_2003
ID: 10716664
check this PAQ

http:Q_20190056.htm
0
 
LVL 1

Author Comment

by:hishopper
ID: 10716715
The page cannot be found
0
 
LVL 49

Accepted Solution

by:
sunray_2003 earned 125 total points
ID: 10716723
Sorry i missed the html

http:Q_20190056.html
0
 
LVL 1

Author Comment

by:hishopper
ID: 10717240
K.. you get the points, but as a freebie could anyone help me do this with Access' form of VB?  (I don't know VB at all).
I tried the following:

    Private Sub Command27_Click()
**Dim Outapp As Outlook.Application
    Dim olnamespace As Outlook.NameSpace
    Dim mycontacts  As MAPIFolder
    Dim myitem As Outlook.ContactItem

    'Open OutLook
    Set Outapp = CreateObject("OutLook.application")
    'Initialize MAPI session
    Set olnamespace = Outapp.GetNamespace("MAPI")

    Set mycontacts = olnamespace.GetDefaultFolder(olFolderContacts) 'Open the Folder of contacts

    'You can use the method Find  or Restric to search
    Set myitem = mycontacts.Items.Find("[Name] =  ""*Jira*"" ")

    End Sub

I get: Compile Error: User-Defined type not defined
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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