Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Date not defaulting to current year

Hi there,
I would like a user to enter JUST the Day and Month....and the year default
to 2008.
Does anyone have any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Date not defaulting to current year

Right click sheet tabview codecopy/paste thischange column to suitformat
column as desired

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column < 7 Then Exit Sub
Application.EnableEvents = False
Target = DateSerial("2008", Month(Target), Day(Target))
Application.EnableEvents = True
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tim Elhatton" wrote in message
...
Hi there,
I would like a user to enter JUST the Day and Month....and the year
default
to 2008.
Does anyone have any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Date not defaulting to current year

Your subject line said "CURRENT" year and your msg said 2008.
On my xl2003 if if type 11/16 I automatically get the CURRENT year.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tim Elhatton" wrote in message
...
Hi there,
I would like a user to enter JUST the Day and Month....and the year
default
to 2008.
Does anyone have any ideas?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Date not defaulting to current year

Thanks Don....

"Don Guillett" wrote:

Your subject line said "CURRENT" year and your msg said 2008.
On my xl2003 if if type 11/16 I automatically get the CURRENT year.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tim Elhatton" wrote in message
...
Hi there,
I would like a user to enter JUST the Day and Month....and the year
default
to 2008.
Does anyone have any ideas?



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
Date defaults to current year cmaddox Excel Discussion (Misc queries) 3 July 31st 07 09:38 PM
Combination Graph with current year and prior year sales JanW Charts and Charting in Excel 2 April 5th 07 09:20 PM
calculate prior calendar year end from a moving current date Louise Excel Worksheet Functions 1 December 6th 06 08:48 PM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM
Date Defaulting Heather Excel Worksheet Functions 2 April 23rd 05 12:00 AM


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