Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Reading Outlook Address book using VBScript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,32937
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Reading Outlook Address book using VBScript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Reading Outlook Address book using VBScript - 4/2/2006 10:00:16 PM   
  bidhan_baruah

 

Posts: 2
Score: 0
Joined: 4/2/2006
Status: offline
Hi All:
I want to access outlook address book from VbScript and dump the addreses in a .txt file. Can Anyone help me please?

Thanks
Bidhan
 
 
Post #: 1
 
 RE: Reading Outlook Address book using VBScript - 4/2/2006 11:04:17 PM   
  ginolard


Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
You'd probably be better off doing it in VBA from within Outlook itself.

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to bidhan_baruah)
 
 
Post #: 2
 
 RE: Reading Outlook Address book using VBScript - 4/3/2006 4:03:41 PM   
  bidhan_baruah

 

Posts: 2
Score: 0
Joined: 4/2/2006
Status: offline
No I Need this in a program. It is a web based solution whenever user clicks on "get Outlook addresses" then the client side script ( VbScript) should run and get the client's address book in a txt file format.

Please help...

Bidhan

< Message edited by bidhan_baruah -- 4/3/2006 4:04:44 PM >

(in reply to ginolard)
 
 
Post #: 3
 
 RE: Reading Outlook Address book using VBScript - 4/3/2006 6:17:14 PM   
  ginolard


Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
This might help, I found it on the Office Space Archive of the Script Center.  it echoes out all the contacts

On Error Resume Next

Const olFolderContacts = 10

Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")

Set colContacts = objNamespace.GetDefaultFolder(olFolderContacts).Items

For Each objContact In colContacts
   Wscript.Echo objContact.FullName, objContact.BusinessTelephoneNumber
Next

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm

(in reply to bidhan_baruah)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Reading Outlook Address book using VBScript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts