Post all the text from a word document into oulook?

jscranton

Well-known Member
Joined
May 30, 2011
Messages
707
I am trying to create a quick macro that will send the contents of a word document in an outlook message (not as an attachment).

The issue is that I am trying to paste the word document in as an image since it contains check boxes and other content controls that won't paste as text (or Rich text).

Code:
    Dim EmailItem As Object
    Dim wdApp As Word.Application
    Dim myDoc As Word.Document
    Dim recepient As String
    Dim ccRecepients As String
    Dim subject As String

    myDoc.Select
    Selection.WholeStory
    Selection.Copy
    
    
    
    With EmailItem
        .subject = subject
        .To = recepient 
        .cc = ccRecepients
        .Importance = olImportanceNormal
        .BodyFormat = olFormatRichText
        [B].Body = Selection.PasteSpecial[/B] 'This is where I am stuck
        .Display
    End With
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Outlook doesn't have PasteSpecial ... what about attaching the doc ?
Code:
   With EmailItem
       .Attachments.Add "YOUR FILE PATH AND NAME"
   end with
 
Upvote 0

Forum statistics

Threads
1,225,669
Messages
6,186,348
Members
453,350
Latest member
mjohnston819

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top