PC Review


Reply
Thread Tools Rate Thread

Emulate "Insert as Text"

 
 
Bob Marquette
Guest
Posts: n/a
 
      9th Dec 2003
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?

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP]
Guest
Posts: n/a
 
      26th Dec 2003
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
http://www.outlookcode.com/jumpstart.aspx

"Bob Marquette" <(E-Mail Removed)> wrote in message
news:0e9901c3be9c$63954b50$(E-Mail Removed)...
> 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?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert picture automatically as "behind" not "in line with text". =?Utf-8?B?VGF4ZWQgTWluZA==?= Microsoft Word Document Management 8 29th Mar 2007 09:40 PM
"insert text here" & "insert picture here" for templates =?Utf-8?B?TmV3IFN0dWRlbnQ=?= Microsoft Word Document Management 1 14th Aug 2006 10:26 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Microsoft Excel Misc 3 26th Oct 2005 12:36 AM
VBA: how to emulate "Insert > New Record" in VBA while Form is open Peter J. Veger Microsoft Access 4 24th Sep 2005 02:27 PM
How to restore the "Insert Auto Text" menu in the "Header & Footer" tool bar???? Gilles Desjardins Microsoft Word New Users 3 16th May 2005 03:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.