I am probably stupid, but...
Dim ans2 As String
Dim x As Integer
Dim i As Long
x = Text1
For i = Text1 To Text2
ans2 = LPAD(x, Text3)
x = x + 1
Next
MsgBox "Finsihed", , "End"
Why isn't this working ?
text 1 = starting number
text 2 = ending number
text 3 = number of 0's to pad with
Something is still wrong.
If I set the buffer to 10 0's I get this
higher number
0000001638
0000001639
lower numbers
0000000
0000001
??? - why would it just change like that
Is it calculating how many 0's to add based on the final number reached instead of the current number it is at ?