Excel VBA 원하는 시트로 점프하기

기타 2011. 10. 26. 10:07
원하는 시트로 점프하기
Worksheets("시트명").Activate 

예)시트명리스트에서 시트명을 클릭하면 해당되는 시트로 점프
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    
    If ActiveCell.Column = 2 And ActiveCell.Value <> "" Then
        Dim sheetName As String
        sheetName = ActiveCell.Value
        Worksheets(sheetName).Activate
    End If

End Sub 

'기타' 카테고리의 다른 글

데몬이란  (0) 2011.10.27
VNC 란  (0) 2011.10.26
엑셀 단축키  (0) 2011.10.13
보조프로그램 실행 명령  (0) 2011.10.13
윈도우 단축키  (0) 2011.10.13
posted by 연오랑^^