Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Right click on sheet tab, view code, paste this in:
Private Sub Worksheet_Change(ByVal Target As Range) 'Only run if change made to D3, and D2 and D3 are not = "" If Intersect(Target, Range("D3")) Is Nothing Or _ Range("D2").Value = "" Or Range("D3").Value = "" Then Exit Sub If Range("G3").Value Range("D2").Value Then MsgBox "You are in the future!", vbOKOnly, "WARNING!" End If End Sub -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "Jenny" wrote: Hi, I am trying to come up with a macro that will display a pop up box when certain criteria are met. The user will enter a date in cell D2 and a zip code in cell D3 that will then automatically display a date in cell G3 via vlookup. So once these two cells are populated by the user I need this macro to run and do the following: If the date in cell G3 is after the date in cell D2, I want a pop up message box to say that the date is in the future. I've tried formulas and conditional formatting to warn users, but they ignore these, so I need a pop up that they would have to click OK on to exit out of to hopefully get the message across. Thank you for any help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Countif Conditions - Use of conditions that vary by cell value | Excel Discussion (Misc queries) | |||
2 Conditions + Sum of a colum matching those conditions | Excel Worksheet Functions | |||
shade cells based on conditions - i have more than 3 conditions | Excel Worksheet Functions | |||
How Do I have excel count 2 cells with conditions (Excel 2003) | New Users to Excel | |||
How to multiple conditions to validate more than 2 conditions to . | Excel Worksheet Functions |