Hey Guys,
I want to write a macro that looks at a cell in which a date is input in the format mm/dd/yyyy (for example a cell titled "Date"), and if this date is the last date of the month and it falls on a weekend (eg. July 31/2011 falls on a Sunday) then I want it to return a msg box informing the user that the last day of the month is falling on a weekend. How would I write such a code. I'm so lost. All I know right now is that i can utilize the EOmonth function, and perhaps the weekday function, but I don't know how to write a functioning code that utilizes these functions. Any help, or an example of how I would go about this would be appreciated. Thanks guys.
I want to write a macro that looks at a cell in which a date is input in the format mm/dd/yyyy (for example a cell titled "Date"), and if this date is the last date of the month and it falls on a weekend (eg. July 31/2011 falls on a Sunday) then I want it to return a msg box informing the user that the last day of the month is falling on a weekend. How would I write such a code. I'm so lost. All I know right now is that i can utilize the EOmonth function, and perhaps the weekday function, but I don't know how to write a functioning code that utilizes these functions. Any help, or an example of how I would go about this would be appreciated. Thanks guys.