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
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
-
4:18
10. Introduction to Programming with VBA - The Variant Data Type
-
7:07
15. Introduction to Programming with VBA - The Block If Construct
-
3:50
18. Introduction to Programming with VBA - The Select Construct
-
6:11
22. Introduction to Programming with VBA - Array Variables
-
5:57
Tomorrow’s Teenagers
-
13:53
Graph Data Structure 7. A* Pathfinding VB.NET Implementation