Copy Email Subject Macro?

G

G

I want to run a basic copy function that simply copies the subject of an
email to the clipboard. Can anyone point me in the right direction?

Thank you, in advance, for your help.

G
 
M

Michael Bauer [MVP - Outlook]

The currently select e-mail (if any) is
Application.ActiveExplorer.Selection(1).

The easiest way of working with the clipboard from Outlook is to use the
MSForms library: Once you have added an UserForm to your project, you also
have a reference to the MSForms library (if you don't need the UserForm, you
may delete it).

Open the object browser (f2), and switch from <All libraries> to MSForms.
Then see the DataObject and it methods. You may click any function, and
press f1 for more help.

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Tue, 19 Aug 2008 08:33:02 -0700 schrieb G:
 
Top