ไม่แน่ใจว่าหมายถึงการสร้างรหัสแบบนี้หรือเปล่า
Public Function QRString() As String
Dim DateStr As String, DateChr(12) As String, i As Integer
DateStr = Format(Now(), "DDMMYYYYHHmm")
For i = 1 To 12
DateChr(i) = Mid(DateStr, i, 1)
Next
QRString = Format(Int(Rnd() * 1000), "000") & DateChr(9) & DateChr(5) & DateChr(3) & DateChr(1) & DateChr(6) & DateChr(11) & DateChr(7) & DateChr(8) & DateChr(2) & DateChr(10) & DateChr(4) & DateChr(12)
End Function