Hi All,
Was hoping someone could help out -
On my userform, i have a TextBox that i would like to prepopulate with data when the form initializes..
Usually, i use the simple code of..
But, i would like to know if it would be possible for a random number to generated instead?Please Login or Register to view this content.
For example, if i was to just type the formula normally into exel, it would be...
=RANDBETWEEN(1000,9999)
But this wont work if i write it in VB. Can you tell me how i can get this formular, to run each time the form initializes to the TextBox is filled with a random number?
Many thanks for your help in advance
Bookmarks