Referencing Active/Current/Selected MailItem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Seems like such a simple thing. Say I want to write a macro that acts on the
current selected or highlighted mail item in a folder. What is the syntax
for referencing that mail item? More specifically, I want to be able to move
the item somewhere else. Is there a GetActiveItem method or some such thing?
Can someone provide me with a snippet?

And generally, is there a good all inclusive resource (aka programming
manual) for writing Outlook macros somewhere so I don't have to resort to
asking silly questions like these here??
 
Please open the Object Browser (F2), switch from <All Libraries> to Outlook.
Then type into the textbox "active". You will get results which are
self-explanatory; if they are not, select one of them and press F1 for help.

The same works for "move". So ist really easy to explore the objects, their
methods, properties and events.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am Sat, 13 Jan 2007 21:11:00 -0800 schrieb MJS:
 
Back
Top