sorry, I should have been more clear. Not only do I need to detect if it ran from a message window, but I also need the object reference so that I can do something with it.
I'm afraid I don't know enough about outlook coding to be able to get the object from application.activewindow. :-(
the object explorer is no help. it says activewindow has no child methods or properties
Main Topics
Browse All Topics





by: BlueDevilFanPosted on 2008-04-10 at 07:54:45ID: 21325481
Hi, doubledrat.
eWindow)
That's easy. Use something like this:
Select Case TypeName(Application.Activ
Case "Explorer" 'Ran from the main window
Case "Inspector" 'Ran from an open message window
End Select