|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Private Sub Worksheet_Change(ByVal T As Range)
If Not (Intersect(T, Range("B4, E5, G5, B7, B8, F8, B11")) Is Nothing) Then
If T = "" Then End
rr = Array("B4", "E5", "G5", "B7", "B8", "F8", "B11")
For x = 0 To UBound(rr)
dz_1 = Range(rr(x)).Address(0, 0)
If x + 1 <= UBound(rr) Then
xh = x + 1
Else
xh = 0
End If
dz_2 = Range(rr(xh)).Address(0, 0)
If dz_1 = T.Address(0, 0) Then
Range(dz_2).Select
Exit For
End If
Next x
End If
End Sub
|
|