I stole this from Randy Brown, I think, several years ago:

WAIT WINDOW NOWAIT "Processing Contact File"
myolapp=createobj('Outlook.Application')
mynamespace=myolapp.getnamespace('MAPI')
myfolder=mynamespace.getdefaultfolder(10)
myitems=myfolder.items
mycount=myitems.count
create cursor tmp (name c(20),mailto c(40),phone c(20),busphone
c(20),category c(20))
for i = 1 to mycount
*- ti for thisitem
 ti=myfolder.items(i)
IF TYPE('ti.fullname')<>'U'
  m.name=ti.fullname
  m.phone= ti.hometelephonenumber
  m.mailto=allt(ti.email1address)
  m.category=ti.categories
  m.busphone=ti.BusinessTelephoneNumber
  insert into tmp from memvar
endif
next
wait window clear


JH



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL 
PROTECTED]@shelbynet.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to