Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The macro below was applied to the dates given to obtain numbers of
days. Instead, it keep producing the RESULT in serial-like faction. What do I do to achieve the expected result shown below? dim tx as Date tx = Format(#1/1/2008#, "dd/mm/yyyy") Range("F" & z).FormulaR1C1 = "=RC[-1] - " & (tx) DATE 30/01/2008 31/1/2008 31/1/2007 RESULT 39477 39478 39478 EXPECTED RESULT(NO OF DAYS) 29 30 30 30 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date String To Serial | Excel Discussion (Misc queries) | |||
date serial | Excel Programming | |||
How do I convert Date serial number to date | Excel Worksheet Functions | |||
A VBA function to give serial date for date and time? | Excel Programming | |||
time serial number problem | Excel Programming |