+ Reply to Thread
Results 1 to 8 of 8

Pop up messages according the date of the month

  1. #1
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Pop up messages according the date of the month

    Hello

    I use this code(Provided by Mr Alan) that works fine.
    Please Login or Register  to view this content.
    My problem is that when the specific dates of the code are in weekends or Holidays, user does not see the messages and forget to do the duties.

    I need if specific days of the month that appear in the code(10,15,20,25,30) are in weekends OR Holidays the pop up message to appears the last working date BEFORE that day.

    In My example as Tomorrow date is in the Holidays List, the message for DAY 15 of the month should appear today.

    Thanks in advance for any assistance here!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Pop up messages according the date of the month

    Hi

    I would recommend a sub that is run before the one in the post, which sets the 5 dates. So it looks to see if its a weekend and then adjusts.

    Something like

    Please Login or Register  to view this content.
    then replace if Day(Now()) > dateCheck1 etc.


    I havent tested it, but that is the approach i'd play with.

    You could even set it up on a separate sheet using the same weekday formula and then look at that sheet
    Last edited by Fotis1991; 05-14-2014 at 07:54 AM. Reason: Pls use code tags around your codes!
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Pop up messages according the date of the month

    I'm thinking:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Pop up messages according the date of the month

    nathansav

    Thank you but Not sure how to handle it!

    ragulduy

    Thanks for that. Unfortunately this(running the code) does not appears anything. It should appears the data of column B? Should it?

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Pop up messages according the date of the month

    Hi, I put the code in a new module in your example and I got a message box as follows (based on today being the 14th).:
    "15 of month
    E
    F
    G"
    which I believe is the corerct result.

    However, it could be an issue with date formats (I think it assumes (dd/mm/yyyy format), try this:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Pop up messages according the date of the month

    YES. This works great and gives the correct results. Thank you.

    May i ask this?

    If i want in another application to use your code for different dates(let's say 2 ,10;22;28 of the month) will this code works for me?

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Pop up messages according the date of the month

    This bit:
    Please Login or Register  to view this content.
    is what defines the days that should be used, if you want a more generalised code:
    Please Login or Register  to view this content.
    then you can change the numbers within the array function as neccessary.

  8. #8
    Forum Contributor MariaPap's Avatar
    Join Date
    10-19-2013
    Location
    Chania-Crete-Greece
    MS-Off Ver
    Excel 2003-2010
    Posts
    319

    Re: Pop up messages according the date of the month

    ooooooooaaaaooooooooo!!! Thank you so much!!

+ 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. Sort month/date/year data using month and date only
    By SMW820 in forum Excel General
    Replies: 8
    Last Post: 11-18-2014, 08:39 AM
  2. [SOLVED] Need Help Resolving Error Messages with Nestled IF and Date functions
    By Dee Mann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-29-2013, 02:03 PM
  3. Array function for date(month), Range Date(month)
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 05:14 PM
  4. [SOLVED] Issue FAQ for posting messages not up to date
    By Pepe Le Mokko in forum Suggestions for Improvement
    Replies: 3
    Last Post: 04-10-2012, 01:46 PM
  5. [SOLVED] Date arithmetic: adding 1 month to prior end of month date
    By manxman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2006, 04:35 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