outlook2000: store contactItem in a recipient variable

R

Robin Heinrich

Hi Folks!

I got a Problem with a bit of code. I wanna create a Journal entry when a
specific email-type arrives in my inbox and want to set the contact-field in
the journal entry to the person it comes from. When i try to do this:

"colItemsJournal.Recipients.Add (Empf)"

I read somewhere that i have to assign a "recepient" type of object to it,
but what do I have to store into the variable Empf? The FileAs of a contact
object? FullName???
I changed the Type of everything to "Recepient" before I tried so this isnt
the error.

It doesnt work and gives no error or anything else i could use and work out
the error.
when i try to do this:

"colItemsJournal.Contact = Empf"

It is the same thing as above. but this time Empf is a "string".

I have no clue what to do.

rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top