Since Outlook already has commands to do this, is there a particular reason you want to duplicate that functionality? Regardless, your Outlook version and whether you're using WordMail as the editor would be key factors.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
Hi,
Sue Mosher [MVP-Outlook] schrieb:
> Since Outlook already has commands to do this, is there a particular reason you want to duplicate that functionality? Regardless, your Outlook version and whether you're using WordMail as the editor would be key factors.
I've got two textfiles on a network share, where the actual Signature (a
short and long) is in. The signatures often changes (4-6 times/month)
and the users had to actualize their signatures by hand - not very
practical.
The easiest way I see, is to a add two buttons in the Outlook Form,
which read the text from the files and add it to the email.
We are using Outlook 2003 and both - Wordmail and not Wordmail.
Best regards,
Harry
Sue Mosher [MVP-Outlook] - 08 May 2005 13:20 GMT
The simplest approach in that case would be to write your code using the SafeInspector object from the Redemption library (http://www.dimastr.com/redemption/). Alternatively, you can try copying the test to the Windows clipboard, then automating a Paste in Outlook using CommandBars (see http://www.outlookcode.com/d/tips/commandbarfun.htm) but I've had mixed results with that technique and wouldn't recommend it.
If it were my project, I might think about pushing out .txt, .rtf, and .htm versions of the signatures to the users' Signatures folders and letting them use Outlook's built-in signature features.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
[quoted text clipped - 13 lines]
> Best regards,
> Harry