+ Reply to Thread
Results 1 to 5 of 5

VBA code to send emails if column i = >5

  1. #1
    Registered User
    Join Date
    08-03-2023
    Location
    berkshire
    MS-Off Ver
    365
    Posts
    2

    VBA code to send emails if column i = >5

    Below is the code i use i need a check to see if column i is greater than 5, if it is then send the email if not do not send the email


    Please Login or Register  to view this content.
    Last edited by AliGW; 08-03-2023 at 07:48 AM. Reason: Code tags added - please review the forum rules.

  2. #2
    Forum Expert ByteMarks's Avatar
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,086

    Re: VBA code to send emails if column i = >5

    Please Login or Register  to view this content.
    Doesn't column I contain an email address?

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,065

    Re: VBA code to send emails if column i = >5

    Administrative Note:

    Please review the forum rules (code tags & cross-posting).

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As yo uare new here, I'll do it for you this time: https://www.mrexcel.com/board/thread...n-i-5.1242468/)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: VBA code to send emails if column i = >5

    which column contains the value that needs to be greater than 5

    something like if sh.Range("your column" & i).Value > 5 then


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-03-2023
    Location
    berkshire
    MS-Off Ver
    365
    Posts
    2

    Re: VBA code to send emails if column i = >5

    Thank you works as intended

+ 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. VBA Code Automatically send emails, but emails don't show up in sent box
    By AndrewK02 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2022, 02:05 PM
  2. Send 2 separate/different emails using 1 VBA code?
    By rachelr1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2020, 05:57 AM
  3. Tweak to existing VBA code to send emails on Mac
    By mrbusto71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2018, 06:30 PM
  4. Use of CDO code to send emails failing
    By DEB1000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2015, 03:49 PM
  5. Help with code to send automatic emails
    By hauckj14 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2015, 12:45 PM
  6. Any Excel code to send emails automatically
    By knighty2002uk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2014, 05:55 AM
  7. VB Code to send emails depending on cell value
    By yorilla in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2012, 11:14 AM

Tags for this Thread

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