Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Strange Condition on Date Value

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default Strange Condition on Date Value

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange date separator in Excel Kardan Excel Discussion (Misc queries) 0 November 23rd 07 02:03 PM
Strange date separator in Excel Kardan Excel Discussion (Misc queries) 0 November 23rd 07 02:01 PM
Strange? VBA code returns wrong date format (not a date) zzxxcc Excel Programming 8 October 12th 07 09:13 AM
Question regarding a strange condition in Excel spdsht... Flop Excel Discussion (Misc queries) 2 January 14th 05 06:05 PM
Strange date formatting problem RB Smissaert Excel Programming 6 January 12th 04 10:02 PM


All times are GMT +1. The time now is 02:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"