Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default a simple question

I had a similar problem.

The first set of dates being 01-05-2003 to 12-05-2003 in 2002 may be getting
intrepreted as "mm-dd-yyyy" format, rather than "dd-mm-yyyy" as you appear
to be expecting, therefore making this Jan 5, Feb 5 etc to Dec 5.

Of course there is no 13th month in our calendar (there is in some), so VBA
treats 13-05-2003 as a string - not a date at all.

The obvious answer is to treat the incoming record as a string, and use
Left, Mid & Right string functions to populate the DateValue(dd,mm,yyyy)
function in VBA. Therefore leaving no room for international
misunderstandings to creep into your coding.

Regards

Dave


"Question deleted from response"




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
Simple Question - Sum If?? JenC Excel Worksheet Functions 5 November 12th 09 07:58 PM
Simple question [email protected] New Users to Excel 4 March 24th 08 07:47 PM
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Simple Question Chip Pearson Excel Programming 0 July 21st 03 02:34 PM


All times are GMT +1. The time now is 02:50 AM.

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"