Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Excel date input inconsistancy

I have created a spreadsheet for data collection which is utilising
userforms for this purpose. The data is for the last financial year
(06-07) and the date options in the combo box reflect this (using
month only) When selected though the year changes to 07 from 06 (ie
April 06 as selected becomes April 07) How can I rectify this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Excel date input inconsistancy

Need to see the code. Probably some place Datevalue() function is used and
wrong year was put in the function.

"PhilM" wrote:

I have created a spreadsheet for data collection which is utilising
userforms for this purpose. The data is for the last financial year
(06-07) and the date options in the combo box reflect this (using
month only) When selected though the year changes to 07 from 06 (ie
April 06 as selected becomes April 07) How can I rectify this?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Excel date input inconsistancy

Code is

ComboBox2.Value = Format(ComboBox2.Value, "mmm-yy")

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Excel date input inconsistancy

This is not a combobox problem, it is your format statement. The same
problem would occur with

mydate = "06-07"
mydate = Format(mydate, "mmm-yy")

The problem is with the "mmm". Change to "mm".

Also note the months are first and the year is second.

"PhilM" wrote:

Code is

ComboBox2.Value = Format(ComboBox2.Value, "mmm-yy")


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
Excel 2002: How to overcome inconsistancy in auto cell function ? Mr. Low Excel Discussion (Misc queries) 7 August 2nd 07 04:28 PM
Can excel have a button to input (stamp) the systems date and/or . abe Excel Worksheet Functions 5 April 24th 07 10:00 PM
Excel date input inconsistancy PhilM[_2_] Excel Discussion (Misc queries) 1 April 16th 07 04:28 PM
Iteration inconsistancy Ken G. Excel Discussion (Misc queries) 0 March 15th 07 01:09 AM
excel input date format NoelH Excel Programming 1 January 11th 06 11:15 PM


All times are GMT +1. The time now is 11:18 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"