Results 1 to 2 of 2

Trying to format body of email with attachment through macro

Threaded View

  1. #1
    Registered User
    Join Date
    10-05-2022
    Location
    Texas, USA
    MS-Off Ver
    For Mac v16.65
    Posts
    1

    Trying to format body of email with attachment through macro

    Below is simple code that I have used to simply attach the current workbook to an email, write the subject line, and send the email.

    Sub Email_Schedule()
    Application.ScreenUpdating = False
    ActiveWorkbook.Save
    Shell ("OUTLOOK")
    ActiveWorkbook.SendMail Sheets("Schedule").Range("EA7:EA11").Value, "test" & Sheets("Schedule").Range("D273").Value & " Schedule " & Sheets("Schedule").Range("D4").Value & " - " & Sheets("Compliance").Range("as53").Value
    Application.ScreenUpdating = True
    MsgBox "Your Schedule Has Been Submitted. Open Outlook and Click Send/Receive."
    Application.ScreenUpdating = True
    End Sub

    It saves the current workbook, attaches the current workbook, writes the subject line, sends to a range of emails addresses based on data within the workbook, and sends it.

    I want to add a body to the email though. For the sake of the example, let's say those are on Sheet "Compliance" cells A1:A20.

    I cannot get this to just work though. Any help is appreciated.
    Last edited by b_wallace1987; 10-05-2022 at 07:15 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Basic VBA for Email - No Attachment Needed - Only Subject, Email, Greeting & Body
    By fmiller81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2021, 03:04 AM
  2. [SOLVED] Macro to Format % in Body of Email
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2020, 07:37 AM
  3. Copy attachment contents into body of email !
    By V.Cell in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-19-2016, 07:47 AM
  4. Copy contents of attachment directly into body of email
    By V.Cell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2016, 06:30 AM
  5. Emailing PDF, another attachment, and with range in email body
    By supcussy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2012, 10:03 PM
  6. Modifying VB Code/Macro to put selection into body of email instead of attachment.
    By excelstacy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2011, 05:34 PM
  7. Email excel as body rather than attachment
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2006, 04:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1