Pops message box when run userform based on days for current month

Ali M

Active Member
Joined
Oct 10, 2021
Messages
337
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hi
I want when run the form then :
1- if the day for date will be 27 or 28 or 29 or 30 or 31 for current month (DEC) and the column A will not be current month for current year DEC-24 should show message"You have to settle your salary entitlement."
2- if the day for date will be 27 or 28 or 29 or 30 or 31 for current month(DEC) and the column A will be current month for current year DEC-24 then shouldn't show message.
3- if Exceeded days 27 or 28 or 29 or 30 or 31 previous month )(DEC) like 1 , 2 , 3.... for current month and current year JAN-25 and there is no month DEC in column A then show message "you have missed month is DEC to settle your salary entitlement"
when there is missed month in column A then should show message to inform me what's the months are missed in any day for date .
but everything is ok then just show message for current month based on any day 27 or 28 or 29 or 30 or 31.
thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,527
Messages
6,179,357
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top