My problem is that I used this variable. I checked the spelling of the variable as well, however I am still getting this error. Is there an option I need to set to correct this? I must be doing something wrong.
Module GuessingGame Sub Main() Dim RandomNumber As Integer Dim NumberGuess As Integer Dim GuessCounter As Integer GuessCounter = 1 Randomize() RandomNumber = Int(Rnd() * 20) + 1 Do Loop NumberGuess = CInt(InputBox("Please type in a guess between 1 and 20")) If NumberGuess <> RandomNumber Then End If GuessCounter = GuessCounter + 1 If NumberGuess > RandomNumber Then MsgBox("Your guess is too high.") Else MsgBox("Your guess is too low.") End If Do Loop Until NumberGuess = RandomNumber MsgBox("Great job! The number " & NumberGuess & "was correct!") End Sub End Module