Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Geez--this is my second post of the morning. Sorry about not thinking my =
queries through all the way! Anyway, I have the following macro which deposits the date and time into = a=20 cell: Sub DateAndTime() With ActiveCell .Value =3D Now .NumberFormat =3D "mm/dd/yy h:mm AM/PM" End With End Sub Unfortunately, the stamp deposited into the cell seems not to be = recognized=20 by Data Validation, which is set up to flash a warning box if the time = entered=20 is after 5:00 PM. If I enter the identical info that the macro generates = manually and hit "Enter," THEN Validation pops the warning box up. What am I doing wrong? Can I rewrite the macro so that it essentially = hits=20 "Enter" at the end so that validation will work? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Effect of Conditional Formatting, Data Validation | Excel Discussion (Misc queries) | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions | |||
Data Validation Window? | Excel Discussion (Misc queries) | |||
Using Validation List from Another Workbook with Dependent Data | Excel Worksheet Functions | |||
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? | Excel Discussion (Misc queries) |