- ©«¤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
|
¦^´_ 1# fusayloveme - Option Explicit
- Private Sub CommandButton2_Click()
- Range("S1").Resize(, 5) = Array("½s¸¹", "»sµ{", "ª«®Æ¦WºÙ", "¥N½X", "Á`¥[")
- 'Range("S1:W1") = Array("½s¸¹", "»sµ{", "ª«®Æ¦WºÙ", "¥N½X", "Á`¥[") '¥[¤Wµù¸Ñ ¨t²Î¤£·|°õ¦æ
- With Range("S2:W600")
- .Columns(1) = "=IF(R[1]C[-17]=R[0]C[-17],1,0)"
- .Columns(2) = "=IF(R[1]C[-16]=R[0]C[-16],1,0)"
- .Columns(3) = "=IF(R[1]C[-9]=R[0]C[-9],1,0)"
- .Columns(4) = "=IF(R[1]C[-13]=R[0]C[-13],1,0)"
- .Columns(5) = "=SUM(RC[-4]:RC[-1])"
- End With
- 'Range("S2:S600") = "=IF(R[1]C[-17]=R[0]C[-17],1,0)"
- 'Range("T2:T600") = "=IF(R[1]C[-16]=R[0]C[-16],1,0)"
- 'Range("U2:U600") = "=IF(R[1]C[-9]=R[0]C[-9],1,0)"
- 'Range("V2:V600") = "=IF(R[1]C[-13]=R[0]C[-13],1,0)"
- 'Range("W2:W600") = "=SUM(RC[-4]:RC[-1])"
- Range("W1").AutoFilter
- ActiveSheet.Range("$S$1:$W$600").AutoFilter Field:=5, Criteria1:="4"
- Columns("E:H").EntireColumn.Hidden = True
- End Sub
½Æ»s¥N½X |
|