Results 1 to 8 of 8

Pop up messages according the date of the month

Threaded View

MariaPap Pop up messages according the... 05-14-2014, 05:47 AM
nathansav Re: Pop up messages according... 05-14-2014, 06:22 AM
ragulduy Re: Pop up messages according... 05-14-2014, 06:31 AM
MariaPap Re: Pop up messages according... 05-14-2014, 07:00 AM
ragulduy Re: Pop up messages according... 05-14-2014, 07:05 AM
MariaPap Re: Pop up messages according... 05-14-2014, 07:23 AM
ragulduy Re: Pop up messages according... 05-14-2014, 07:30 AM
MariaPap Re: Pop up messages according... 05-14-2014, 07:42 AM
  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.
    Option Explicit
    Private Sub Workbook_Open()
    Dim sh As Worksheet
    Set sh = Sheets("Sheet2")
    
    If Day(Now()) = 10 Then
        MsgBox Join(Application.WorksheetFunction.Transpose(sh.Range("A1:A10").Value), Chr$(10))
        ElseIf Day(Now()) = 15 Then
            MsgBox Join(Application.WorksheetFunction.Transpose(sh.Range("B1:B10").Value), Chr$(10))
            ElseIf Day(Now()) = 20 Then
                MsgBox Join(Application.WorksheetFunction.Transpose(sh.Range("C1:c10").Value), Chr$(10))
                ElseIf Day(Now()) = 25 Then
                    MsgBox Join(Application.WorksheetFunction.Transpose(sh.Range("D1:D10").Value), Chr$(10))
                    ElseIf Day(Now()) = 30 Then
                        MsgBox Join(Application.WorksheetFunction.Transpose(sh.Range("E1:E10").Value), Chr$(10))
    End If
    
    End Sub
    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

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