Sub csvRnd() Dim txt As Integer Dim lngidx As Long Dim lngStart As Long Dim lngEnd As Long txt = FreeFile Open "c:\abc.csv" For Output As #txt Write #txt, "ID", "Name" lngStart = 1 lngEnd = 120000 For lngidx = lngStart To lngEnd Write #txt, lngidx, Int((lngEnd - lngStart + 1) * Rnd + lngStart) Next Close #txt MsgBox "completed!", vbInformation End Sub
0 件のコメント:
コメントを投稿