Results 1 to 7 of 7

Email a selected range form an Excel sheet

Threaded View

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Adelaide, south australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Email a selected range form an Excel sheet

    Hi
    I am using this macro to look up a range of cells in excel to send in an email body but need to change a few things.

    The email is to .Display so I can check before sending.

    I need it to look at a sheet called 'To Csh Mgt" to select the range of cells.

    Also in the body of the email I need it be to the left hand side in the email, at the moment it centre's it.

    Finally to put a "Yes" in another worksheet range I152 once the email has been sent

    My comments are in green the original comments are in red.

    Many thanks in advance.
    Sub Send_Range()						
       						
       ' Need this to select the sheet ("To Csh Mgt").						
       ActiveSheet.Range("B7:D17").Select						
       						
       ' Show the envelope on the ActiveWorkbook.						
       ActiveWorkbook.EnvelopeVisible = True						
       						
       ' Set the optional introduction field that  adds						
       ' some header text to the email body. It also sets						
       ' the To and Subject lines. Finally the message						
       ' is sent.						
       With ActiveSheet.MailEnvelope						
          .Introduction = "Beakdown of Payment"						
          .Item.To = ThisWorkbook.Sheets("To Csh Mgt ").Range("C1")						
          .Item.CC = ThisWorkbook.Sheets("To Csh Mgt").Range("C2")						
          .Item.Subject = ThisWorkbook.Sheets("To Csh Mgt").Range("C3")						
          .Item.Display						
       End With						
    'In worksheet("Checking") , enter a "yes" in cell "I152"						
    						
    End Sub
    Last edited by AliGW; 02-20-2018 at 02:02 AM. Reason: Moved from Excel General

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] vba to email selected range fromm excel doc using lotus notes
    By vman5781 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2016, 11:21 AM
  2. vba to create a new outlook email with the selected excel range and charts
    By anjali_2015 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2015, 08:25 PM
  3. send selected range in email with default outlook email signature included
    By mdsickler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 10:50 PM
  4. Copy rows to new sheet based on date range selected on a form
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-19-2009, 11:40 AM
  5. display a selected area of a excel sheet in a VB form
    By taniks in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2009, 11:44 AM
  6. [SOLVED] Email selected range in Excel
    By Paul Ho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-29-2005, 11:20 AM
  7. [SOLVED] About send email of selected range in Excel
    By Paul Ho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2005, 08:50 AM

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