MsgBox if Range as date has passed

Rtkinnell

New Member
Joined
May 29, 2019
Messages
11
I am sure this has been answered before, therefore I apologize in advance. Can someone please assist me in a macro code under Worksheet_calculate to simply write.

If Range("N9") < Now() And Range("O9").value = False then
MsgBox "xxx xxx"
End If


It seems simple yet I can not come up with it correctly. It could even be written as if cell N9 is < cell B29. B29 being the current date on my sheet. Range O9 is a check box.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I'm guessing you're using a From control checkbox in O9 ??
Change to an activeX checkbox and use....assuming the checkbox is CheckBox1

Code:
Private Sub worksheet_calculate()
If Range("N9").Value < Now() And CheckBox1.Value = False Then
MsgBox "xxx xxx"
End If
End Sub
 
Upvote 0
Michael,
I am not near my work now. But i will try this as soon as I can. Thank you very much for your quick assistance.
 
Upvote 0

Forum statistics

Threads
1,224,884
Messages
6,181,562
Members
453,053
Latest member
Kiranm13

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