VBscript for the Outlook Contact extract 
Author Message
 VBscript for the Outlook Contact extract

Hi:

I want to get the address from the Outlook 2000 Contact using VBScript.
I got the code from msdn which is VB code. I am not sure how can i turn
that to the vbscript so that i can use them in a HTML page.

here is the code:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myContacts = myNameSpace.GetDefaultFolder (olFolderContacts)
Set myItem = myContacts.Items.Find("[FileAs] = _
    ""Jones"" and [FirstName] = ""Brent""")

any help is greatly appreciated.

Thanks in advance,
Chins



Mon, 30 Dec 2002 03:00:00 GMT  
 VBscript for the Outlook Contact extract

Const olFolderContacts = 10
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myContacts = myNameSpace.GetDefaultFolder (olFolderContacts)
Set myItem = myContacts.Items.Find("[FileAs] = _
    ""Jones"" and [FirstName] = ""Brent""")

--
Michael Harris
MVP Scripting

Hi:

I want to get the address from the Outlook 2000 Contact using VBScript.
I got the code from msdn which is VB code. I am not sure how can i turn
that to the vbscript so that i can use them in a HTML page.

here is the code:
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myContacts = myNameSpace.GetDefaultFolder (olFolderContacts)
Set myItem = myContacts.Items.Find("[FileAs] = _
    ""Jones"" and [FirstName] = ""Brent""")

any help is greatly appreciated.

Thanks in advance,
Chins



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Extract Contact Information From Outlook PST File

2. Extracting MS Outlook Contacts

3. Exporting Outlook Contacts to an Excel spreadsheet or to a txt file by using VBScript

4. New Outlook Contact in VBScript

5. best way to sync Outlook contacts with a SQL Server contacts database

6. Find a contact in Outlook contact or in a access database

7. VB send outlook contact to contacts subfolder?

8. Prob : Adding contacts for Outlook 2000 and Outlook 97

9. How to create a contact item in Outlook fra a webform

10. Pocket Outlook - Delete all contacts belonging to a category

11. Help Help needed Opening Outlook Contacts(public) in VB5

12. Add to Outlook Contacts Field In Task Form?

 

 
Powered by phpBB® Forum Software