Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
How do I programmatically set a cell to accept "1/1/1799" as a date. If I pass it in and then reset the NumberFormat of the cell or the column it continues to see it as a string, e.g. MySheet.Cell(1,1).NumberFormat = "dd/mm/yyyy" MySheet.Cell(1,1).FormulaR1C1 = Cstr(DateValue("1/1/1799")) So if I want to show it as 01-Jan-1799 it refuses(!) to see it as a date and continues to show 1/1/1799 Thanks Simon |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
creating a "date selector box" or "pull down box" in a cell | Excel Worksheet Functions | |||
Convert numbers to date: "586" to read "May 1986" | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |