kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
I want a way to generate any of these numbers at a time:
1234
0000
1111
2222
3333
4444
5555
6666
7777
8888
9999
I have this line below here which can check for the availability of those pins . I have been staring at it for a while now hoping to find a way around it but no success yet.
I need tech support.
I have been able to use an array with Rand Between function to get it like this
But instead of hard coding the list of possible pins into the array, I am looking for a way to pick or generate one of such pins.
I just don't want them appear in plain text in my code.
Thanks in advance
1234
0000
1111
2222
3333
4444
5555
6666
7777
8888
9999
I have this line below here which can check for the availability of those pins . I have been staring at it for a while now hoping to find a way around it but no success yet.
I need tech support.
Code:
Select Case MyInput
Case String (4, Left(MyInput, 1)), "1234"
MsgBox "Found"
Case Else
MsgBox "Not Found"
End Select
I have been able to use an array with Rand Between function to get it like this
Code:
GetPin = MyArray(Application. RandBetween(LBound(MyArray), UBound(MyArray)))
But instead of hard coding the list of possible pins into the array, I am looking for a way to pick or generate one of such pins.
I just don't want them appear in plain text in my code.
Thanks in advance