Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing from Email

Status
Not open for further replies.

gransbpa

Programmer
Jun 5, 2001
98
NL
Hi there,

I'm looking for a way to get orderinfo automatically from email without user intervention. Anyone knows how to do this?

Thanks.
 
Hi vbaJock,

That's something for a start :)
Now, my next question is: how do I do this?
 
I took some statements out of my coding which will give you an idea what to use and what to look for in the HELP files:

Set objOutLook = CreateObject("Outlook.Application")
Set objNameSpace = objOutLook.GetNamespace("MAPI")
Set objRF = objNameSpace.folders.mailbox

objRF.items(index).body

The body gives you the whole text of the messagebody and you will be able to use instr or other statements to find specific text there.

If you have other questions after you have read all the available help, post them here.

Good Luck
Hans
BTW, there are many other threads dealing with the same subject.
 
Thanks Smitan, vbaJock. I'm sorry but I should have mentioned this before: I use Lotus Notes as a mail client. Would this make it more difficult you think?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top