| | |
stumped random character generator
![]() |
try using the ascii character map, ie chr(65) is A
find the table below
http://www.asciitable.com/
then use then randomize, and then the rand command to be able to pick a random character between the range that you require.
By memory it is rand(high-low)-low
try the below. (there might be a couple of errors as I haven't done VBA for a while)
find the table below
http://www.asciitable.com/
then use then randomize, and then the rand command to be able to pick a random character between the range that you require.
By memory it is rand(high-low)-low
try the below. (there might be a couple of errors as I haven't done VBA for a while)
vb Syntax (Toggle Plain Text)
randomize randomcharacter = rand(90 -65)-65 range("A1") = chr(randomcharacter)
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Do you have any shortcut..
- Next Thread: API function in Visual Basic
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





