could you provide a bit more detail about how you are getting the users guesses ect... and where they come from?
A basic scheme would be
-Ask for a word (i would use inputbox) to use as the hidden word. lcase/ucase it.
-have an array of booleans for each letter (26 letters, ignore upper/lower)
DO
-When the user guesses, the value in the corresponding letter array flags true
eg user inputs an e, element 5 (index 4) = true
-Scan the hidden word and write a _ if the current letter is flagged false in the array - otherwise write the letter
EG the word is password
user has guessed e, and s
we write __ss____
-If the users letter was NOT in the word (use mid$) increase the number of wrong guesses
-draw a hangman or something equivalent
LOOP