Time Sensitive Message Box

szymagic

Board Regular
Joined
Jul 8, 2016
Messages
61
Hello all,

Is it possible to run a message Box from a specific date until someone opens the spreadsheet?

So I have 3 dates in question: April, August, December 26th. Is there a way to have a message box display on those dates up until the spreadsheet is opened a 2nd time? See Timeline...

April 1st - - - - - - - - - - April 26th - - - - - - - - - May 2nd - - - - - - - - June 18th- - - - - - - August 26th - - - - - - October 3rd - - ->>
No MsgBox...................MsgBox Displays - - - - - Opened.....................Opened.................MsgBox Displays - - - - Opened

So the MsgBox would be displayed May 2nd and October 3rd, but not June 18th.

Can this also be reoccurring indefinitely?

I'd be glad to explain anything if there is confusion! Thanks for the help in advance!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Yes, it sounds doable.

You will need to place the MsgBox code in your ThisWorkBook Module. You will also need to keep some details about when or how many times the workbook has been opened. That information will need to be retained. Retaining it in a, possibly hidden, worksheet would be the obvious choice.

So when the workbook is opened:

1. The Workbook_Open Even will be triggered.
2. That will check to see how many times the workbook has been opened and the current date.
3. It will then decide whether to display the MsgBox or not.


Regards,
 
Upvote 0

Forum statistics

Threads
1,215,357
Messages
6,124,482
Members
449,165
Latest member
ChipDude83

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