- ©«¤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 ©ó 2013-5-12 21:36 ½s¿è
¦^´_ 5# sunnyso
§Aªºµ{¦¡§ï¥Î¦Û°Ê¿z¿ï ¸Õ¸Õ¬Ý- Option Explicit
- Private Sub Worksheet_Activate()
- Dim Sh As Worksheet, E As Integer
- Application.ScreenUpdating = False
- Application.EnableEvents = False
- AutoFilterMode = False
- E = Cells(Rows.Count, "A").End(xlUp).Row
- E = IIF(E = 5, 6, E)
- Range("A6:E" & E).Clear
- For Each Sh In Sheets(Array("DataSheet2", "DataSheet3", "DataSheet3"))
- Sh.UsedRange.Offset(1).Copy Cells(Cells(Rows.Count, "A").End(xlUp).Row + 1, "A") '¦X¨Ö¸ê®Æ
- Next
- E = Cells(Rows.Count, "A").End(xlUp).Row
- Range("A5:E" & E).AutoFilter '½d³ò³]¥ß,¦Û°Ê¿z¿ï.
- For E = 1 To 5
- Range("A5").AutoFilter E, , , , False '¦Û°Ê¿z¿ï: ¨ú®ø½bÀY
- Next
- Application.EnableEvents = True
- Application.ScreenUpdating = True
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim M As Variant
- Application.EnableEvents = False
- If Target.Row = 4 And Target.Column <= 5 Then
- M = Split(Target, "#")
- If UBound(M) >= 1 Then '
- '¦Û°Ê¿z¿ï: ¦bÃöÁä¦rµü«e¥[¤J¡i#¡j±N¥HOR¨Ó¿z¿ï¸ÓÄæ¡C
- Range("A5").AutoFilter Target.Column, "=*" & M(0) & "*", xlOr, "=*" & M(1) & "*"
- Else
- Range("A5").AutoFilter Target.Column, "=*" & Target & "*"
- End If
- End If
- Application.EnableEvents = True
- End Sub
- Private Sub Worksheet_SelectionChange(ByVal Target As Range) '²Ä4¦C¿é¤J«áªð¦^²Ä4¦C
- Application.EnableEvents = False
- If Target.Row = 5 And Target.Column <= 5 Then
- Selection.Offset(-1).Select 'Target.Offset(-1).Select
- End If
- Application.EnableEvents = True
- End Sub
½Æ»s¥N½X |
|