VBA学习记录
程序员文章站
2022-05-16 09:28:42
...
'简易实现单列查找定位
Private Sub CommandButton1_Click()
Dim arr1
cx = TextBox1.Value
arr1 = Range("C1:C10000")
For i = 1 To UBound(arr1)
If arr1(i, 1) = cx Then
n = i
End If
Next
Range("c" & n).Select
End Sub
上一篇: VBA 删除有颜色的行