Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert string to date
Hi! I have a macro that prints a long series of dates on a worksheet. However
I cannot use these dates as proper dates in excel. Excel simply does not understand that they are dates. Please help me solve this! Here is the code when I print the dates (it is really in a loop but I left that code out). Application.ThisWorkbook.Sheets("Settings").Cells( 6 + iq, 4) = strDate |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Convert string to date
Application.ThisWorkbook.Sheets("Settings").Cells( 6 + iq, 4) =
datevalue(strDate) "Arne Hegefors" wrote: Hi! I have a macro that prints a long series of dates on a worksheet. However I cannot use these dates as proper dates in excel. Excel simply does not understand that they are dates. Please help me solve this! Here is the code when I print the dates (it is really in a loop but I left that code out). Application.ThisWorkbook.Sheets("Settings").Cells( 6 + iq, 4) = strDate |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert a string to a date? | Excel Discussion (Misc queries) | |||
VBA convert day and date from text string to Excel date | Excel Programming | |||
Convert Date to STring | Excel Discussion (Misc queries) | |||
How to convert string to a date | Excel Worksheet Functions | |||
Convert Date to String | Excel Programming |