クラスの 1 つでこのループを作成しましたが、何らかの理由でループが停止しません。ここに私が持っているコードがあります
Dim strScore As String
Dim intNumTests As Integer 'counter
Dim sngSumTests As Single 'accumulator
Dim sngAverage As Single
strScore = InputBox("Enter the score. Click cancel when finished.", "Score Entry")
Do While strScore <> " "
intNumTests = intNumTests + 1 ' update Counter
sngSumTests = sngSumTests + Val(strScore)
strScore = InputBox("Enter the score. Click cancel when finished.", "Score Entry")
Loop