How to Make a Hangman Game with VBA. Part 5 – Checking for Correct Guesses

4,646 views · Published 25 September 2016 · 10:06 · Indexed 22 September 2026

Channel: Computer Science Lessons · 2016 · Education

Watch on YouTube

This is part 5 in a series of videos about how to make a hangman game with Visual Basic for Applications, otherwise known as VBA.  This video shows how to initialise a variable with the text that a player types into a text box on the form when guessing a letter.  It also shows how the Mid function can be used to select an individual letter in a word, and how this can be used along with a For Next loop and an If statement to check if the letter guessed by the player is in the word.

More from this channel