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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working with outlook current mail item

Status
Not open for further replies.

esib

IS-IT--Management
Sep 10, 2004
35
US
I know very little about Outlook, so thought someone may be able to help answer what I imagine is a simple problem.

I am composing a mail message. I click a custom button and i want to be able to insert something (text, hyperlink, etc..) where the cursor was when I clicked the button. the .body property of the current item completely erases everything.

Thanks for the help
 
You would need something like:

activeinspector.CurrentItem.body.selstart

Unfortunately, that doesn't seem to exist.

You could copy the body to a a text box on a form, perform your manipulations there, and replace the mail item body with the result.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top