Run message box when cell value time is exceed system time

kimberly090

Board Regular
Joined
May 22, 2014
Messages
99
Hi,

I have a excel file.

I wish to write a vba script to compare the system time and the cell value time.

If system time is exceed the cell value time, it will show a pop out message to inform user that, the time is exceed.

My file will look like this:
Untitled.png


I have been research a while but seem like only vba code will able to complete this requirement.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

mick0005

Active Member
Joined
Feb 21, 2011
Messages
406
Use data validation.

Select the Allow drop down as Time for Data choose greater than and for Start Time type =NOW()

In the error alert tab you can type whatever message you want if someone types the a time in that is earlier than now.
 

Forum statistics

Threads
1,137,154
Messages
5,679,914
Members
419,862
Latest member
Bluewings666

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
Top