Pop Up Message Box - Out of Date items in a Column

SuperClock

New Member
Joined
Jul 31, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I've been searching through this forum and others for a few days, and with my still limited VBA knowledge, I've been unable to find a VBA script that can assist me in achieving my goal - most of the solutions are for preset future expiry dates.

To the question - I have a master spreadsheet that collates all the files our Administrative and Work Health & Safety teams are required to keep track of on a 1month/3month/6month basis. I have it set up so that the sheet pulls the files out of our shared folder into Column C (currently 7-50), and then updates Column E with the dates that each file was last updated. This has worked quite well, as staff only go into each of those files when they need to, so the last updated date is quite accurate.

However, there are times when staff go on leave, take on secondments, or the longer (6month + files) aren't updated due to staffing changes/movements etc. What I am hoping to achieve is as follows:

Example: File XXXX (Column C), was last modified on June 1st 2023 (Column E). This particular file should be updated on a monthly Basis, therefore if it falls out of that 30 day period, it needs to be seen to ASAP. Each time the Master sheet is opened, I would like the Solution that follows to apply:

Solution: A Pop Up Message Box, that reads all the Dates (Column E 7-50), and will release a series of Pop ups when the spreadsheet is opened (there will never be more than 2-3 Pop ups), that need to be acknowledged by pressing an OK button. The pop up box needs a message saying "File XXXX (Column C 7-50) is out of date". This will ensure each team is made aware of files they need to update to ensure our audits do not fail. It would be handy to have the pop up relay information such as "XXXX will be out of date in (x amount of) days", which could count down from 10 days prior to the required date. This could mean - 10 days before files reach 1 month prior to Today's date (File was last updated 10th of July, Today's date being 30th July, Pop up message File will be out of date in 10 days, and a message each day counting down until out of date, and then even if possible, continuing to alert as out of date beyond that month period). My sheet name to make it simple is '2023', and it is the only sheet that requires this pop up.

If anyone could please help by providing a code base for this that would be much appreciated! I only require the assistance for files that are 1 month past today's date, as I would like to try and manipulate the data for 3/6 month files and beyond to test my knowledge. I hope I have been concise and provided enough detail. Thank you in advance! Your expertise on this forum is invaluable.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If those are real Excel dates, then comparing to the VBA reserved word date (gives todays date) will give you enough information to be able to do what you want. Hint: subtraction of dates gives the difference in days.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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