Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / January 2005

Tip: Looking for answers? Try searching our database.

How to insert text at cursor position in mailitems body

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank M - 05 Jan 2005 00:31 GMT
Via the body property of the Mailitem object you can manipulate the text of
the mailbody. I am wondering, however, if it is possible to insert text at
the current position of the cursur in the mail body.
This is relevant when your application first create the mail and opens the
mailwindow for the user, let them write the general mail and then finally
have options through your application to insert different texts according to
the user's choice in your application window.

Best regards,

Frank M.
Sue Mosher [MVP-Outlook] - 05 Jan 2005 01:53 GMT
You cannot insert text at the cursor with Outlook objects, because Outlook
exposes no object related to the insertion point. If WordMail is the editor,
you can use Word automation; see
http://www.outlookcode.com/codedetail.aspx?id=455 for a code sample.
Otherwise, you can use Redemption's SafeInspector object (
http://www.dimastr.com/redemption/safeinspector.htm )

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Via the body property of the Mailitem object you can manipulate the text
> of
[quoted text clipped - 9 lines]
>
> Frank M.
Frank M - 14 Jan 2005 13:17 GMT
Thanks, that was most helpful.

Best regards,

Frank M.

> You cannot insert text at the cursor with Outlook objects, because Outlook
> exposes no object related to the insertion point. If WordMail is the editor,
[quoted text clipped - 16 lines]
> >
> > Frank M.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.