foster74 Posted May 14, 2009 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!
exodius Posted May 14, 2009 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.
water Posted May 14, 2009 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
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