+ Reply to Thread
Results 1 to 4 of 4

Email Sheet Based on Sheet Name in Col G on sheet "Macro"

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,765

    Email Sheet Based on Sheet Name in Col G on sheet "Macro"

    I have the following code below which works except it duplicates Hi in the body for e.g Hi Hi Dave instead of Hi Dave


    It would be appreciated if someone could amend this section this is causing the issue


    Please Login or Register  to view this content.
    Last edited by Howardc1001; 04-17-2024 at 01:29 AM.

  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,777

    Re: Email Sheet Based on Sheet Name in Col G on sheet "Macro"

    Delete this line of code:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,765

    Re: Email Sheet Based on Sheet Name in Col G on sheet "Macro"

    Thanks

    I managed to get this code to work. However, If where there are 2 or more Items in I2 onwards , several emails are created

    Please Login or Register  to view this content.
    Last edited by Howardc1001; 04-17-2024 at 01:49 AM.

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,765

    Re: Email Sheet Based on Sheet Name in Col G on sheet "Macro"

    I managed to work out a solution

    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. Macro to Copy Data where Sheet Names are the Same from sheet "Bad Debts" onwards
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2023, 10:52 AM
  2. [SOLVED] Macro to email and attach sheets contained in Col L on sheet "Data"
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2022, 02:39 AM
  3. [SOLVED] Email Sheet based on Sheet namesin Col A on sheet "Macro"
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-26-2020, 07:35 AM
  4. Looping thru rows and copy cell values from "Inputs" sheet to "Output" sheet
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2015, 11:32 PM
  5. macro to email a sheet via "outlook web mail"
    By erik915 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2015, 12:59 PM
  6. Script not copying data from "Emails" sheet to "New Sheet" - Run time error: Object
    By methuselah90 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2014, 03:22 PM
  7. Replies: 3
    Last Post: 05-31-2013, 05:16 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