question on Item Parent...(?)

R

Rafael

All,

I'm not sure if this is what is called but here it goes: I receive an email
with a vCard attached to it. I open the vCard and I run a VBA script that
takes the open Item's email and tries to find it on a PF that the user must
select. If the item's email is found the information on the current vCard
if copied (all the fields) to the item found. If the item is not found, the
vCard is copied to the folder selected by the user. The original vCard is
closed after the search and copy are performed.

What I want to do now is modify the subject of the email item that the
attachment came in using the same script.

I think I saw somewhere a function to get the 'Parent Item' or the email
where the vCard came from. I just don't remember if this even exists.

Thanks,

Rafael
 
S

Sue Mosher [MVP]

The Parent property refers to the folder that an item is saved in. It does
not apply to a the item that a file may be attached to. The current item
would be Application.ActiveExplorer.Selection(1) or
Application.ActiveInspector.CurrentItem, depending on whether you opened the
vCard from the folder view or an open email message.
 
R

Rafael

Thanks.

Sue Mosher said:
The Parent property refers to the folder that an item is saved in. It does
not apply to a the item that a file may be attached to. The current item
would be Application.ActiveExplorer.Selection(1) or
Application.ActiveInspector.CurrentItem, depending on whether you opened the
vCard from the folder view or an open email message.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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