Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
Am using Excel 2010 Macro I had this condition which strangely holds TRUE for these values below: CONDITION: ElseIf Range("F" & z).Value Range("Q3").Value Then VALUES Range("F" & z).Value = 06-Jan-2015 Range("Q3").Value = 28-Feb-2015 This condition keep holding TRUE for the values. Is it not recognizing them as date values? If so, how do I force the condition to recognize them as date and thereby hold FALSE as expected. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
Am using Excel 2010 Macro I had this condition which strangely holds TRUE for these values below: CONDITION: ElseIf Range("F" & z).Value Range("Q3").Value Then VALUES Range("F" & z).Value = 06-Jan-2015 Range("Q3").Value = 28-Feb-2015 This condition keep holding TRUE for the values. Is it not recognizing them as date values? If so, how do I force the condition to recognize them as date and thereby hold FALSE as expected. My v2010 returns 'False' for this! -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Kris,
Am Wed, 4 Mar 2015 03:32:32 -0800 (PST) schrieb : Range("F" & z).Value = 06-Jan-2015 Range("Q3").Value = 28-Feb-2015 are that true dates? If not try it with datevalue: If DateValue(Range("F" & z)) DateValue(Range("Q3")) Regards Claus B. -- Vista Ultimate / Windows7 Office 2007 Ultimate / 2010 Professional |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Strange date separator in Excel | Excel Discussion (Misc queries) | |||
Strange date separator in Excel | Excel Discussion (Misc queries) | |||
Strange? VBA code returns wrong date format (not a date) | Excel Programming | |||
Question regarding a strange condition in Excel spdsht... | Excel Discussion (Misc queries) | |||
Strange date formatting problem | Excel Programming |