Private Sub Command1_Click()
    Dim i As Long
    For i = 1 To 99999
        Debug.Print Format(i, "00000")
    Next
End Sub