foster74 Posted May 14, 2009 Share Posted May 14, 2009 I've searched the forums a lot and have been on MSDN for the past hour and I am absolutely horrible at navigating it. $objOutlook = ObjCreate("Outlook.Application") $objNameSpace = $objOutlook.GetNamespace("MAPI") $objFolder = $objNamespace.GetDefaultFolder(6) $numItems = $objFolder.Items.Count $objMessage = $objFolder.Items(1) $Subject = $objMessage.Subject() $Body = $objMessage.Body() I'm not even sure what they are called, but does anyone know where I can find the list of the items like the .Items, .Subject, and .GetDefaultFolder and such? This would be of great help and would be extremely appreciated. Thank you in advance! Link to comment Share on other sites More sharing options...
exodius Posted May 14, 2009 Share Posted May 14, 2009 Here's a reference: http://www.outlookcode.com/article.aspx?id=37I don't have Outlook 2007 installed on this computer, but if you can get to the visual basic editor (or something like that) then it'll pretty well show you everything you can use... I think it's one of the options while editing macros. Link to comment Share on other sites More sharing options...
water Posted May 14, 2009 Share Posted May 14, 2009 (edited) Here you can find the Outlook.udf. Maybe it already offers the functions you are looking for or you could have a look at the code to see how it's done.Or maybe OutlookSpy could be the tool you're looking for:OutlookSpy is the ultimate Outlook developer tool. Integrated directly into Outlook, it provides fast and convenient access to all Outlook Object Model objects, lets you examine values of the properties, call functions, browse object hierarchy and monitor Outlook events. Edited May 14, 2009 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 15, 2009 Moderators Share Posted May 15, 2009 MailItem Object Members Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now