如何利用VBA 选择指定的单元格?
答案:3 悬赏:0
解决时间 2021-01-19 13:47
- 提问者网友:斑駁影
- 2021-01-19 01:05
如何利用VBA 选择指定的单元格?
最佳答案
- 二级知识专家网友:酒醒三更
- 2021-01-19 02:11
Dim i As Integer
For i = 1 To Sheet1.UsedRange.Rows.Count Step 1
If Cells(i, 1).Value = "否" Then
Range("a" & i).Select
Exit For
End If
Next i
我用的是A列做列子 具体那一列你把它换了就行
For i = 1 To Sheet1.UsedRange.Rows.Count Step 1
If Cells(i, 1).Value = "否" Then
Range("a" & i).Select
Exit For
End If
Next i
我用的是A列做列子 具体那一列你把它换了就行
全部回答
- 1楼网友:人類模型
- 2021-01-19 03:32
for i=1 to 9
if cells(i,13)="否" then
'这里放你要执行的命令
end if
next i
if cells(i,13)="否" then
'这里放你要执行的命令
end if
next i
- 2楼网友:上分大魔王
- 2021-01-19 02:20
Sub a()
Dim i As Integer
For i = 1 To 9
If Cells(i, 13) = "否" Then
Cells(i, 13).Select
Exit For
End If
Next i
End Sub
Dim i As Integer
For i = 1 To 9
If Cells(i, 13) = "否" Then
Cells(i, 13).Select
Exit For
End If
Next i
End Sub
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯