老提示错误类型13,类型不匹配,原因是什么?

2025-01-31 06:23:29
推荐回答(1个)
回答1:

response = MsgBox("请确认Cv,Cs,Kp,Np是否已经调整", vbOKCancel)
If response = vbOK Then
For currentrow = 20 To 30 Step 1
oldtime = Cells(currentrow, 15)
newtime = Cells(currentrow, 16)
Do While Abs(newtime - oldtime) > 0.0005
Cells(currentrow, 15) = newtime
oldtime = Cells(currentrow, 15)
newtime = Cells(currentrow, 16) 运行到这一步报错
Loop
Next
End If
End Sub