对象不支持这个属性或方法?

我试图把字母等级input到excel中,但是当我input一个等级时,会出现“Error 428,Object不支持这个属性或方法”。 我究竟做错了什么?

Option Explicit Sub HW09() Dim ng As Integer Dim v As String Do ng = InputBox("Please enter the student's numerical grade.") If ng < 0 Then ng = 0 ElseIf ng > 100 Then ng = 100 Else End If Cells(c, 2).Value (ng) c = c + 1 v = InputBox("Would you like to enter another grade? Type 'Y' for yes and 'N' for no.") If v = "N" Then Exit Do Loop 

它应该是

 Cells(c, 2).Value = ng 

如果你input字母A,B,C,你应该得到一个types不匹配错误

另外,我没有看到c任何初始化