Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook signature placement inserted through VBA

Status
Not open for further replies.

GoodOmens

Programmer
Feb 5, 2002
47
US
I recently wrote a simple Outlook macro for a group of users at my firm who need particular text added to any email message they send to the group. I gave them custom signatures because the text needed to be formatted when using RTF or HTML without loosing the formatting of the existing body. My macro is in the Application_ItemSend macro. To insert the signature if the message passes the criteria I used the code

Item.GetInspector.CommandBars.Item("Insert").Controls("Signature").Controls("Confidential MacroInsert").Execute

This works perfectly on my computer but, of course, has a problem when installed elsewhere. On my computer the "signature" is inserted at the beginning of the body, before the text. Not the usually place for a signature I know but exactly what I needed. On other users' computers the signature is inserted at the end of the document. I can not find any settings that are different.

Any ideas on what might be different or how I can control where the signature is placed?

Thank you in advance for any ideas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top