+ Reply to Thread
Results 1 to 7 of 7

Email a selected range form an Excel sheet

  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.
    Please Login or Register  to view this content.
    Last edited by AliGW; 02-20-2018 at 02:02 AM. Reason: Moved from Excel General

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,759

    Re: Email a selected range form an Excel sheet

    Your post does not comply with Rule 3 of our Forum Rules: Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

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

    Re: Email a selected range form an Excel sheet

    Hi
    My apologies, I am not sure what a code tag is, is that when I put in colours?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,573

    Re: Email a selected range form an Excel sheet

    Post #2 explains what it is and how to add it. I have done it for you THIS time, but you will be expected to do it yourself in subsequent posts.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,913

    Re: Email a selected range form an Excel sheet

    Untested.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 02-20-2018 at 10:14 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

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

    Re: Email a selected range form an Excel sheet

    Thank you so much, I just need to change the Item To and remove wsheet.

    Works perfectly.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,913

    Re: Email a selected range form an Excel sheet

    Glad to help.

+ Reply to Thread

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