| | |
stumped random character generator
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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
Views: 1111 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column 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 listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





