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 / Interop / December 2003

Tip: Looking for answers? Try searching our database.

Emulate "Insert as Text"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Marquette - 09 Dec 2003 21:35 GMT
I am automating Outlook from a VB application. I have a
scenario where I would like to add an attachment as text
in the body of the message. This is done in the UI by
selecting Insert | File... , then using the drop-down on
the Insert button and selecting Insert as Text.

Does anyone know of a way of doing this via the object
model?
Sue Mosher [MVP] - 26 Dec 2003 20:23 GMT
If you are using Word as the email editor, you'd use Word's
Selection.InsertAfter method to add text at the insertion point. In the
regular Outlook editor, you'd have to use a copy/paste kludge.

FYI, programming questions should be addressed to the
microsoft.public.outlook.program_vba newsgroup.
Signature

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

> I am automating Outlook from a VB application. I have a
> scenario where I would like to add an attachment as text
[quoted text clipped - 4 lines]
> Does anyone know of a way of doing this via the object
> model?
 
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.