vba代码大全(怎么用vba代码把单元格数字提取出来变成日

2022-08-27 21:17:31
摘要:  vba代码大全(怎么用vba代码把单元格数字提取出来变成日...

> Public Function ToDate(str As String)Dim stst = Trim(str)dat = Format(Left(st, 4) + "/" + Mid(st, 3, 2) + "/" + Mid(st, 5, 2) + " " + Right(st, Len(st) - InStr(st, " ")), "yyyy/MM/dd hh:mm;ss")End Function