|
|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
代码如下。。。
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
arr = [l13:l92]
s = [g14].Value
x = Application.Match(s, arr, 0)
If Target.Address = "$G$21" Then
If x = 1 Then x = UBound(arr) + 1
[g14] = Application.Index(arr, x - 1)
[g14].Select
ElseIf Target.Address = "$G$23" Then
If x = UBound(arr) Then x = 0
[g14] = Application.Index(arr, x + 1)
[g14].Select
End If
Application.EnableEvents = True
End Sub
|
评分
-
2
查看全部评分
-
|