+ Reply to Thread
Results 1 to 6 of 6

VBA Code displays a pop-up message if date above 20th

  1. #1
    Registered User
    Join Date
    03-29-2022
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    71

    VBA Code displays a pop-up message if date above 20th

    Hello community,

    I'm needing help with some VBA coding.
    I need an alert message box to appear if the date in cell S2 is above the 20th day in the month, and cells P22 and/or P24 have a value above 0,01 cents .

    Thank you in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: VBA Code displays a pop-up message if date above 20th

    At what point do you want the message box to appear? When a value in P22 or P24 is changed, or some other trigger?

    BSB

  3. #3
    Registered User
    Join Date
    03-29-2022
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    71

    Re: VBA Code displays a pop-up message if date above 20th

    Good morning Badly ,
    The message should appear if P22 and/or P24 are filled in, and , if the date in S2 is above 20th day (21 until 30/31)

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: VBA Code displays a pop-up message if date above 20th

    Try this in the worksheet module.
    Please Login or Register  to view this content.
    It will fire each time a value is entered in P22 or P24.

    BSB

  5. #5
    Registered User
    Join Date
    03-29-2022
    Location
    Sao Paulo, Brazil
    MS-Off Ver
    2013
    Posts
    71

    Re: VBA Code displays a pop-up message if date above 20th

    Thanks a Lot , Badly


    It worked very well

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: VBA Code displays a pop-up message if date above 20th

    Glad I could help

    BSB

+ 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] Formula show payments date on 5th, 10th, 15th, 20th, 25th, 30th from inv due date
    By TAMMY32 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-16-2020, 01:11 AM
  2. Replies: 4
    Last Post: 04-02-2020, 02:44 PM
  3. [SOLVED] Return the tuesday before the 20th of a month before an effective date
    By Alphabex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2018, 03:47 PM
  4. [SOLVED] Need date to be 20th of month or nearest Friday if 20th is weekend
    By Ochimus in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-02-2016, 03:37 AM
  5. [SOLVED] Code displays error message reading "type mismatch"
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2014, 09:32 AM
  6. Replies: 4
    Last Post: 04-18-2012, 07:17 AM
  7. [SOLVED] Need a message box that displays loading time.
    By havocdragon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2005, 02:06 PM

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