Solved

command line switch to search for contact

Posted on 2004-03-30
4
309 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
[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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Out of the office Recurrence Out Of Office 3 43
outlook 365 3 62
group calendar 7 22
Email Headers 4 27
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
In this step by step procedure, you will come to know the details of creating an Outlook meeting in 2007, 2010, 2013 & 2016.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

710 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