LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 290
Default Excel American dates

Hi there,

In relation to my post below I found out how to get it to input the
textbox date on the form into the custom results on the filter

Selection.AutoFilter
Selection.AutoFilter Field:=4, Criteria1:="=" & Date1,
Operator:=xlAnd _
, Criteria2:="<=" & Date2

My problem is that, if for example date1 textbox is 10/04/06 it puts it
into the filter as 04/10/06!

I dont know why it does this and I am assuming that between vb and
excel there is an american/english date differance it is compensating
for, I thought about using a datepicker control instead but that would
require the user to have that control installed in excel in order to
use it and I didnt want to make it too complicated. I know that a
textbox is not the best idea for inputting a date in case the user puts
it in a differant format but at the moment the form is really simple so
that I can just work out how to do it.

Can anybody suggest anything? maybe using listboxes to choose the date
from (day * month * Year*) but then i would still have to re-work the
order to make it work and there are only 12 months!

I am so confused, this should be simple!

 
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
Is there an Excel template for a 1-day Tennis American Tournament server Excel Discussion (Misc queries) 2 February 14th 06 02:10 AM
convert american dates from a query Mika Excel Programming 2 November 2nd 05 09:37 AM
convert american dates from a query Mika Excel Programming 5 November 1st 05 01:19 PM
Is there an Excel template for a 1-day Tennis American Tournament server Excel Discussion (Misc queries) 0 July 15th 05 10:26 AM
English and American dates... Nick Excel Programming 2 July 27th 04 01:19 AM


All times are GMT +1. The time now is 09:25 AM.

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

About Us

"It's about Microsoft Excel"