Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Both F7 and H7 contain a date yet this sub does not execute the
statements after Then.................Please help. Sub GetAmOrDep() Dim TestDate As Date TestDate = DateAdd("m", Range("F7").Value, Range("H7").Value) If TestDate < Range("I7").Value Then Range("K7").Select Selection.Copy Range("M7").Select ActiveSheet.Paste End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dateadd function | Excel Discussion (Misc queries) | |||
Using DateAdd Function with cell values | Excel Discussion (Misc queries) | |||
DateAdd | Excel Programming | |||
DateAdd | Excel Programming | |||
DateAdd function | Excel Programming |