Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
date
I have a macro that basically put current date in a cell
Dim d As Date Dim s As String Sheets("New Ren Data").Select Range("a65001").Select d = Now() s = d Selection.FormulaR1C1 = s However the problem is that when I look at the value in the formula bar its shows say for eg. today is 02/08/2006 09:43:2 It should show. 08/02/2006 instead. any suggestions why ITs doing wrong? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
date
Try this instead
Dim s As String Sheets("New Ren Data").Select Range("A65001").FormulaR1C1 = Date -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "flow23" wrote in message ... I have a macro that basically put current date in a cell Dim d As Date Dim s As String Sheets("New Ren Data").Select Range("a65001").Select d = Now() s = d Selection.FormulaR1C1 = s However the problem is that when I look at the value in the formula bar its shows say for eg. today is 02/08/2006 09:43:2 It should show. 08/02/2006 instead. any suggestions why ITs doing wrong? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert Automatic, Non-Updating Date Stamp | Excel Discussion (Misc queries) | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
Adding XY days to date in cells | Excel Discussion (Misc queries) | |||
Another Date issue. | Excel Worksheet Functions | |||
Date Math Problem | Excel Worksheet Functions |