msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get the Current Mail that is being viewed in Outlook 2007

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> MS Office Outlook
Author Message
AIForst



Joined: 16 Jan 2008
Posts: 1

PostPosted: Wed Jan 16, 2008 8:59 am    Post subject: Get the Current Mail that is being viewed in Outlook 2007 Reply with quote

I have used the msoutl.olb api to get the Application and am able to create
and send mails .... I wanted to know how to access the Current Mail that is
being viewed in Outlook2007???

Archived from group: microsoft>public>office>developer>outlook>vba
Back to top
View user's profile Send private message
Sue Mosher [MVP-Outlook]



Joined: 12 Aug 2007
Posts: 656

PostPosted: Wed Jan 16, 2008 12:58 pm    Post subject: Re: Get the Current Mail that is being viewed in Outlook 200 Reply with quote

Application.ActiveExplroer.Selection(1) for an item being viewed in the reading pane, Application.ActiveInspector.CurrentItem for an item being viewed in its own window.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"AIForst" wrote in message @microsoft.com...
>I have used the msoutl.olb api to get the Application and am able to create
> and send mails .... I wanted to know how to access the Current Mail that is
> being viewed in Outlook2007???

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Set current view for Outlook Group Calendar I need to automatically set Outlook to display the current day in a public folder group calendar. I need this to run every few minutes, so maybe something on a timer. I'm good with VB & VBA, but new to Outlook programming so I was hoping for some sample

mailitem.move displays current time as receive time After moving (archiving) emails from inbox and sent items, the displayed receivedate on the mails is reset to time of moving. Seen a lot of questions about this, but nowhere an answer. If I can drag and drop and retain all porperties, how do I do that pro

Outlook ignoring html font tag - VBA - Access 2007 & Outlook Seeing another pair of eyes to tell me where I'm missing some key element. My code below works fine to create a message however the font tag is ignored and everything comes out as Times New Roman 12pt. Any assist would be greatly appreciated. strMailMsg

i made a plugin of outlook that crashes in outlook 2007 on v Hi I am facing a Problem that i have made a plugin in Visual Studio 2000 using VC6.0 that is running fine in outlook 2003 and on all the operating but when i run that plugin on Outlook2007 installed on Microsoft Vista( licensed )

Problems with shutdown in Outlook 2007 when using Outlook Ob Hi, I've written an application that logs into Outlook, accesses some of the user's data, and logs out. A problem occurs if I run the application twice in a row, without waiting long after the application exits the first time. The first time the program
Post new topic   Reply to topic    msoutlook.org Forum Index -> MS Office Outlook All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group