- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-8-30 14:36 ½s¿è
¦^´_ 1# myleoyes - Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- Application.EnableEvents = False
- If Target(1).Row = 2 Then '¦b²Ä2¦C
- Select Case Target(1).Column
- Case 1
- With ActiveWindow '²¾°£µøµ¡¤À³Î
- .SplitColumn = 0
- .SplitRow = 0
- End With
- Cells.EntireColumn.Hidden = True
- [A1:F1].Cells.EntireColumn.Hidden = False
- [A1].Select
- Case 2 To 5 'B2:E2
- ÁôÂÃ Target(1)
- End Select
- End If
- Application.EnableEvents = True
- End Sub
- Sub ÁôÂÃ(xLRng As Range)
- Dim Rng As Range, xF As Range
- Set Rng = Range("A2, F2" )
- Cells.EntireColumn.Hidden = False
- Set xF = Rows(2).Find(xLRng, LOOKAT:=xlPart, LookIn:=xlValues) '´M§ä
- Do
- Set Rng = Union(Rng, xF)
- Set xF = Rows(2).FindNext(xF)
- Loop While xLRng.Address <> xF.Address '¤@ª½¨ì¬O²Ä¤@´M§ä¨ìªº¦ì¸m
- Cells.EntireColumn.Hidden = True
- Rng.EntireColumn.Hidden = False
- Rng.Select
- With ActiveWindow
- .SplitColumn = 6
- .SplitRow = 2
- .FreezePanes = True
- End With
- End Sub
½Æ»s¥N½X |
|