Adding Message Text to Recieved Message

D

DMc2004

Hi

I would like to write some code to add five lines of text to the current
selected message in my inbox. This text that will be added will be taken from
a user form created in VBA, and working with the form in no problem but how
do i gain access to the current selected message, the message will be open.

I know i can open the message and goto the Edit menu and Edit Message. But
the user will be selecting items from a drop down list in a form and this is
the information that will be returned.

Also how can i run code straight away when the message has been opened.

DMc
 
M

Michael Bauer

Hi,

if there is one item selected than you can access it via
ActiveExplorer.Selection collection. Please see VBA help for an example.
 
Top