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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about a macro in MS Outlook 1

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hi,

This is a difficult question about a macro in MS Outlook:
Can you tell me all properties of the object Item in the Sub

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Thank you in advance.
 
It depends on what you are sending, for example a MailItem has differing properties to a TaskItem etc (which is why I'd imagine it's declared as an Object rather than an explicit type of Item).

The best way to find out an item's properties is to look in the object browser (F2), select Outlook from the drop down box and then look at the different available items in the list on the left.

General e-mails are sent as MailItem's so that would be a good place to start looking.

You can also check the type of the Item is what you're expecting using:
Code:
If TypeOf Item Is Outlook.MailItem Then 'this checks it's a MailItem


Hope this helps

HarleyQuinn
---------------------------------
Black coat, white shoes, black hat, cadillac. The boy's a timebomb!

You can hang outside in the sun all day tossing a ball around, or you can sit at your computer and do something that matters. - Eric Cartman

Get the most out of Tek-Tips, read FAQ222-2244: How to get the best answers before post
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top