by alrodopial » Sun May 19, 2013 10:58 am
It drives me crazy
cell A1: Chest 10th May - 13:45
how do i extract - VBA - the "10th May" as excels' date serial number?
I try to use the:
myTARGET = DateSerial(2013, 05, 23)
but i get type missmatched error when trying to convert the "May" into its number (5)
rINFO = "Chest 10th May - 13:45"
rDATE = Split(rINFO, " ")(1)
rDATE = Replace(rDATE, "th", "") * 1
rMONTH = Split(rINFO, " ")(2)
and I get error here:
monthNUMBER= Month(DateValue("01 " & rMONTH & " 1900"))