hangj

Excel 快速跳转到工作表

新建 vba 模块

Sub GotoSheet()
    tname = InputBox("input table name")
    If StrPtr(tname) = 0 Then
        Exit Sub
    ElseIf tname = vbNullString Then
        Exit Sub
    Else
        For i = 1 To Sheets.Count
            If LCase(Sheets(i).Name) Like "*" & LCase(tname) & "*" Then
                Sheets(i).Select: Exit For
            End If
            Next i
    End If
End Sub

设置快捷键,因为我平时经常用 Sublime,所以这个跳转快捷键也设置成类似的

have fun!

分类:

技术点:

相关文章:

  • 2021-12-04
  • 2021-12-16
  • 2022-02-17
  • 2021-12-14
  • 2022-02-09
  • 2022-02-19
  • 2021-08-05
  • 2021-12-16
猜你喜欢
  • 2021-12-04
  • 2021-12-02
  • 2022-02-09
  • 2021-05-09
  • 2021-11-30
  • 2021-09-18
  • 2021-10-22
相关资源
相似解决方案