+ Reply to Thread
Results 1 to 10 of 10

Specific range to specific email

  1. #1
    Registered User
    Join Date
    03-29-2023
    Location
    uk
    MS-Off Ver
    365
    Posts
    4

    Specific range to specific email

    Hi, how can i send different range of the table to the the different emails. For example the range cells(A2:A5) (Q2:Q5) send to Email in cell S5
    then another part off teh table to another email cells(A6:A8) ( Q6:Q8) to email in cell S8, and so on.

    I have over 100 emails to send. Can anyone help me with the code for that.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Specific range to specific email

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    03-29-2023
    Location
    uk
    MS-Off Ver
    365
    Posts
    4

    Re: Specific range to specific email

    Sorry, i'm not good with VBA.

    If i want to add another row in that table, witch parameter do i need to change? So it will end up As A6 and each table would be 4 rows now instead of 3?

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Specific range to specific email

    Change the 3 in 'Step 3' to 4.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Specific range to specific email

    Also change the 3 to 4 in this line:
    Please Login or Register  to view this content.
    and change the 2 to 3 in this line:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-29-2023
    Location
    uk
    MS-Off Ver
    365
    Posts
    4

    Re: Specific range to specific email

    after sending 34 emails, it stops and this massage pops up: "Run-time error'440': The object does not support this method.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: Specific range to specific email

    Another Option...For original file...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Specific range to specific email

    Which line of code is highlighted when you click "Debug"?

  9. #9
    Registered User
    Join Date
    03-29-2023
    Location
    uk
    MS-Off Ver
    365
    Posts
    4

    Re: Specific range to specific email

    hi, this line:

    .to = Range("S2 & x + 3)

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: Specific range to specific email

    If you look at the code provided by Mumps1 in Post 2, you will notice your above snippet is not as he supplied...
    Please Login or Register  to view this content.

+ 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] Export Subject Line from specific email to specific excel spreadsheet
    By ShakJames in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-12-2016, 03:55 PM
  2. Email range of text to specific email address
    By chaysp81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2016, 02:57 AM
  3. [SOLVED] sending email with specific range as email body vba modification
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2014, 11:24 AM
  4. [SOLVED] Email specific Range using macro
    By shaileshgavanang in forum Excel General
    Replies: 6
    Last Post: 02-23-2014, 10:19 AM
  5. [SOLVED] Print Macro to email PDFs of specific pages of a workbook to specific recipients
    By mike_vr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 12:34 PM
  6. How to Send specific range via email
    By Zahhhaaaa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2011, 07:13 AM
  7. Automatically send an email from excel with specific data on specific date.
    By Angela1607 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-04-2009, 08:11 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