VBA第六课 循环判断数据
发布时间:2020-12-13 20:46:05 所属栏目:PHP教程 来源:网络整理
导读:Sub do_loop循环判断()Dim cj%cj = 1Docj = cj + 1 If cj 10 Then Exit Do 退出循环 Else If Cells(cj,2) = 90 Then Cells(cj,3) = 优秀 If Cells(cj,2) = 80 And Cells(cj,2) = 90 Then Cells(cj,3) = 良好 If Cells(cj,2) = 60 And Cells(cj,2) = 80 Then
Sub do_loop循环判断()
Dim cj%
cj = 1
Do
cj = cj + 1
If cj > 10 Then
Exit Do '退出循环
Else
If Cells(cj,2) >= 90 Then Cells(cj,3) = "优秀"
If Cells(cj,2) >= 80 And Cells(cj,2) <= 90 Then Cells(cj,3) = "良好"
If Cells(cj,2) >= 60 And Cells(cj,2) <= 80 Then Cells(cj,3) = "合格"
If Cells(cj,2) < 60 Then Cells(cj,3) = "不及格"
End If
Loop
End Sub
转载请注明作者与出处:http://blog.csdn.net/u013511642 王小涛_同(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |