Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
date issue
hi,
i use excel2000 i have a problem with date format. i get a variant with toto="15/03/2003" when i put it in cells dim toto as variant with Cells(x,y) .value = toto .numberformat = "DD/MM/YYYY" end with it displays "03/15/2003" and the cell format is as"mm/dd/yy"!!!!. i tried to format the cell before affecting data, same issue! i tried to put data into a string var before putting it into cells i tried to format(toto, 'dd/mm/yy") anyway the same issue the regional parameters are short= dd/mm/yy long = dd/mm/yyyy please help me!!!!! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
date issue
dim toto as long
toto = DateValue("03/15/2004") with Cells(x,y) .value = toto .numberformat = "DD/MM/YYYY" end with -- Regards, Tom Ogilvy "khennet" wrote in message ... hi, i use excel2000 i have a problem with date format. i get a variant with toto="15/03/2003" when i put it in cells dim toto as variant with Cells(x,y) .value = toto .numberformat = "DD/MM/YYYY" end with it displays "03/15/2003" and the cell format is as"mm/dd/yy"!!!!. i tried to format the cell before affecting data, same issue! i tried to put data into a string var before putting it into cells i tried to format(toto, 'dd/mm/yy") anyway the same issue the regional parameters are short= dd/mm/yy long = dd/mm/yyyy please help me!!!!! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
date issue
Hi
try chaning the line .value = toto to .value = dateserial(2003,3,15) -- Regards Frank Kabel Frankfurt, Germany "khennet" schrieb im Newsbeitrag ... hi, i use excel2000 i have a problem with date format. i get a variant with toto="15/03/2003" when i put it in cells dim toto as variant with Cells(x,y) .value = toto .numberformat = "DD/MM/YYYY" end with it displays "03/15/2003" and the cell format is as"mm/dd/yy"!!!!. i tried to format the cell before affecting data, same issue! i tried to put data into a string var before putting it into cells i tried to format(toto, 'dd/mm/yy") anyway the same issue the regional parameters are short= dd/mm/yy long = dd/mm/yyyy please help me!!!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Date issue | Excel Worksheet Functions | |||
Date issue | Excel Discussion (Misc queries) | |||
DATE ISSUE! | Excel Worksheet Functions | |||
Date issue | Excel Worksheet Functions | |||
Another Date issue. | Excel Worksheet Functions |