I'm using this to create an array of numbers.
The example array is shown below.
Instead of entering {1,2,3,4,5,6,7,8,9,10,100,2000} ... wanted to input something like "1-10,100,2000".
Is this possible?
The example array is shown below.
Instead of entering {1,2,3,4,5,6,7,8,9,10,100,2000} ... wanted to input something like "1-10,100,2000".
Is this possible?
VBA Code:
Sub arr_from_input()
Dim arr_num As Variant
Dim i As Long
arr_num = Application.InputBox(prompt:="Enter values", Type:=64)
For i = LBound(arr_num) To UBound(arr_num) - 0
Debug.Print arr_num(i)
Next i
End Sub