- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
¦^´_ 1# ipip207
¸Õ¸Õ¬Ý
³Ì¤W±´¡¤J¤@¦C
¥Ñ¥ª¦Ü¥k¨Ì§Ç¶ñ¤J ByDate,Show,Hide,Jan,Feb, Mar, ...,Dec- Private Sub Worksheet_selectionChange(ByVal Target As Range)
- Dim Col%, LstR%, Rng As Range
- Col = Target.Column
- If Col > 15 Then Exit Sub
- LstR = [A65536].End(xlUp).Row
- Set Rng = Range([A2], Cells(LstR, 15)) '¥þ³¡±Æ§Ç½d³ò
- If Target.Row > 1 Then Exit Sub
- If Col = 1 Then 'Sort byDate xlAscending(«ì´_쪬)
- Rng.Sort _
- Key1:=Range("A2"), Order1:=xlAscending, _
- Header:=xlYes
- ElseIf Col = 2 Then
- Cells.EntireRow.Hidden = False
- ElseIf Col = 3 Then
- For I = 3 To LstR
- If Cells(I, 3).Value > 2 Then
- Cells(I, 3).EntireRow.Hidden = True
- End If
- Next
- Else
- Set Rng = Range([A2], Cells(LstR, 15)) '¥þ³¡±Æ§Ç½d³ò, 6¥Nªí"F"
- Rng.Sort _
- Key1:=Cells(2, Col), Order1:=xlDescending, _
- Header:=xlYes
- End If
- End Sub
½Æ»s¥N½X
|
|