¦U¦ì¤j¤j¦n
§Ún°}¦C30Ósheets ³o¼Ë¥´¤U¥h¥i¯à·|«Üªø...
½Ð°Ý¥H¤U¸Ó¦p¦ó²¤Æ- Sub TEST()
- Dim x%
- Dim bx(30) As String
-
- For x = 1 To Sheets.Count
- bx(x) = Sheets(x).Name
- Next x
-
- If Sheets.Count = 2 Then Sheets(Array(bx(1), bx(2))).Select
- If Sheets.Count = 3 Then Sheets(Array(bx(1), bx(2), bx(3))).Select
- If Sheets.Count = 4 Then Sheets(Array(bx(1), bx(2), bx(3), bx(4))).Select
- If Sheets.Count = 5 Then Sheets(Array(bx(1), bx(2), bx(3), bx(4), bx(5))).Select
- If Sheets.Count = 6 Then Sheets(Array(bx(1), bx(2), bx(3), bx(4), bx(5), bx(6))).Select
- .
- .
- .
- .
- .
- .
-
- End Sub
½Æ»s¥N½X |