Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: Troy Reganall
  Where is Troy Reganall?
 Toledo (OH)
 Ohio - United States
 Troy Reganall
 Tags
Subject: RE: Update Contacts from a DBF
Thread ID: 112552 Message ID: 112557 # Views: 7 # Ratings: 2
Version: Visual FoxPro 8 Category: Microsoft Office Automation
Date: Thursday, November 09, 2006 4:29:19 PM         
   


> Hi everyone,
>
> Anyone have any code to update the contacts in MS Outlook from a dbf file?
>
> Troy
> Long Live FoxPro!


Something like this:
oOlApp = CreateObject("Outlook.Application") && Open Outlook
with oOlApp.GetNameSpace("MAPI").GetDefaultFolder(10)	&& 10 = Default contacts folder	 

	FOR i = 1 TO .Items.Count		&& modify
		.Items(i).LastName= "NEWNAME"
		.....
	endfor

	with .Items.Add			&& add new contact
		.LastName= "Troy from Toledo"
                ....
	endwith
endwith
.....

Best Wishes,

Yuri Rubinov

ENTIRE THREAD

Update Contacts from a DBF Posted by Troy Reganall @ 11/9/2006 3:34:09 PM
RE: Update Contacts from a DBF Posted by Koen Piller @ 11/9/2006 4:06:08 PM
RE: Update Contacts from a DBF Posted by Yuri Rubinov @ 11/9/2006 4:29:19 PM
RE: Update Contacts from a DBF Posted by Troy Reganall @ 11/9/2006 8:16:14 PM
RE: Update Contacts from a DBF Posted by Ken Murphy @ 11/9/2006 9:09:44 PM
RE: Update Contacts from a DBF Posted by Troy Reganall @ 11/10/2006 12:24:44 AM
RE: Update Contacts from a DBF Posted by Ken Murphy @ 11/10/2006 1:23:10 AM
RE: Update Contacts from a DBF Posted by Simon Arnold @ 11/10/2006 3:12:49 PM