Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Switching from Jan-1 yields 1/1/2006, should be 2007

I have a macro that merges multiple spreadsheets for input into a
forecast. The dates in the initial spreadsheet are in the format
"DEC-12". The forecast requires the dates in the format "12/12/2006".


I fixed that but the problem is this. Right now there are dates on for
January but my macro creates the dates as 1/1/2006 when it should be
1/1/2007.

Any thoughts on a formatting method apart from a brute force
programming solution checking to see if the data covers two years
(which I'm already working on)?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Switching from Jan-1 yields 1/1/2006, should be 2007

When the year isn't specified, Excel assumes the current year. So you need
to tell Excel you want January of next year, or you have to program
something.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Jason Lepack" wrote in message
s.com...
I have a macro that merges multiple spreadsheets for input into a
forecast. The dates in the initial spreadsheet are in the format
"DEC-12". The forecast requires the dates in the format "12/12/2006".


I fixed that but the problem is this. Right now there are dates on for
January but my macro creates the dates as 1/1/2006 when it should be
1/1/2007.

Any thoughts on a formatting method apart from a brute force
programming solution checking to see if the data covers two years
(which I'm already working on)?



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
Switching ODBC sources in Excel 2007 MichaelS Excel Discussion (Misc queries) 1 December 30th 09 12:51 AM
Switching from 2003 to 2007 CommMajor Excel Discussion (Misc queries) 9 November 26th 08 01:31 PM
2006 increments to 2007 Automatically jfisk Excel Discussion (Misc queries) 3 October 26th 06 02:30 AM
Excel 2007 MS Query prompt yields Syntax error Bruce Excel Discussion (Misc queries) 0 May 26th 06 11:06 AM
How do I change a date format 3/14/2006 to 3-14-2006 in Excel 2002 Jerry T. Excel Discussion (Misc queries) 2 March 15th 06 09:23 PM


All times are GMT +1. The time now is 07:11 PM.

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"