Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am importing some data from a database via a VBA String.
One of the fields is a Date/Time in the form of dd/yy/mm hh:dd:ss. I stick the string into a cell using Set xLrngCell = Worksheets("Sheet1").Cells.Item(lngRowCount, lngColCount) xLrngCell = strFieldContents However when I go to the spreadsheet I find that some of the dates will not convert to their numeric value. If I try to format them as a General number some of them convert but others stay as strings. If I edit one of these strings (just removing and replacing one character) it will "become" OK. What is going on? Thanks, Roy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Counting number of rows between date range and meeting 2 string criteria | Excel Worksheet Functions | |||
Change 3 letter text string to a number string | Excel Discussion (Misc queries) | |||
convert string to date & time | Excel Worksheet Functions | |||
Every time i put a number with period it becomes a date and time | Excel Discussion (Misc queries) | |||
Counting number of time a character appears in a string | Excel Worksheet Functions |