作者:高淑美萱士建志 | 来源:互联网 | 2023-05-20 17:49
有人可以帮我在这里找到错误吗?
If Not r Is Nothing Then
r.Select
Else
If Not rr Is Nothing Then
rr.Select
Else
If Not rrr Is Nothing Then
rrr.Select
Else
End If
OpiesDad..
5
你的代码的问题是你使用If Else If
而不是If ElseIf
你需要做的:
If Not r Is Nothing Then
r.Select
Else
If Not rr Is Nothing Then
rr.Select
Else
If Not rrr Is Nothing Then
rrr.Select
Else
End If
End If
End If
要么
If Not r Is Nothing Then
r.Select
ElseIf Not rr Is Nothing Then
rr.Select
ElseIf Not rrr Is Nothing Then
rrr.Select
Else
End If
第二个可能更好.
1> OpiesDad..:
你的代码的问题是你使用If Else If
而不是If ElseIf
你需要做的:
If Not r Is Nothing Then
r.Select
Else
If Not rr Is Nothing Then
rr.Select
Else
If Not rrr Is Nothing Then
rrr.Select
Else
End If
End If
End If
要么
If Not r Is Nothing Then
r.Select
ElseIf Not rr Is Nothing Then
rr.Select
ElseIf Not rrr Is Nothing Then
rrr.Select
Else
End If
第二个可能更好.