#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Dates in VBA

The dates being returned in my formulas are 4 years and 1 day later. Even
just with the Now function. Why?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Dates in VBA

On Fri, 27 Oct 2006 13:09:01 -0700, wienmichael
wrote:

The dates being returned in my formulas are 4 years and 1 day later. Even
just with the Now function. Why?


In VBA as in the Subject??

Please post examples.

If you mean in your worksheet, go to Tools/Options/Calculations/Workbook
Options and DEselect 1904 Date system.
--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Dates in VBA

Thanks for the help.

"Ron Rosenfeld" wrote:

On Fri, 27 Oct 2006 13:09:01 -0700, wienmichael
wrote:

The dates being returned in my formulas are 4 years and 1 day later. Even
just with the Now function. Why?


In VBA as in the Subject??

Please post examples.

If you mean in your worksheet, go to Tools/Options/Calculations/Workbook
Options and DEselect 1904 Date system.
--ron

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Dates in VBA

Check out the Date System you are using in ToolsOptionsCalculation.

Sounds like the 1904 system is checked.

Uncheck it.

Your dates will not change so you will have to subtract 1462 from each.

Enter 1462 in an unused cell.

Copy then select your dates and Paste SpecialSubtractOKEsc.

Re-format the cells to Date as the above operation will change to Number.


Gord Dibben MS Excel MVP

On Fri, 27 Oct 2006 13:09:01 -0700, wienmichael
wrote:

The dates being returned in my formulas are 4 years and 1 day later. Even
just with the Now function. Why?


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
Identifying unique dates in a row of cells containing dates... cdavidson Excel Discussion (Misc queries) 9 October 13th 06 08:43 PM
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Dates and Intervals Dave_Lee Excel Worksheet Functions 8 May 26th 06 01:34 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM


All times are GMT +1. The time now is 01:34 PM.

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"