PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
Emulate "Insert as Text"
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
Emulate "Insert as Text"
![]() |
Emulate "Insert as Text" |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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? |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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" <anonymous@discussions.microsoft.com> wrote in message news:0e9901c3be9c$63954b50$a001280a@phx.gbl... > 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? > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

