The ActiveWindow property provides access to the currently viewed window and to the properties and methods of the Window object that it returns.
The following example accesses the MailEnvelope property of the ActiveWindow to send an e-mail:
var objEmail; objEmail = Application.ActiveWindow.MailEnvelope; objEmail.Subject = "Please Review Attached"; objEmail.Visible = true;