我想测试给定单元格是否在 Excel VBA 中的给定范围内。最好的方法是什么?
最佳答案
来自帮助:
Set isect = Application.Intersect(Range("rg1"), Range("rg2"))
If isect Is Nothing Then
MsgBox "Ranges do not intersect"
Else
isect.Select
End If
关于excel - VBA 测试单元格是否在范围内,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5183374/