'------------- 20190123162518 年月日时分秒 -------
参数 ljf 可以自定义为空,或者 - _ 都可以
function RiQiSiJiMa(ljf)end function
可以配合字符串随机码一起用:
'---------------- 随机码 ---
Function randomStr(intLength)
Dim strSeed, seedLength, pos, Str, i
strSeed = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
seedLength = Len(strSeed)
Str = ""
Randomize
For i = 1 To intLength
Str = Str + Mid(strSeed, Int(seedLength * Rnd) + 1, 1)
Next
randomStr = Str
End Function