Emulate "Insert as Text"

  • Thread starter Thread starter Bob Marquette
  • Start date Start date
B

Bob Marquette

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?
 
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.
--
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
 
Back
Top