- ©«¤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
|
¦^´_ 4# maiko - Option Explicit
- Sub Ex1() '1# ªºµ{¦¡½X
- Dim xi As Integer
- With Sheet1
- .Range("A:A").AdvancedFilter xlFilterCopy, , .Cells(1, .Columns.Count), True
- '¶i¶¥¿z¿ï: ¤£«½Æªº¸ê®Æ¨ì³Ì«á¤@Äæ
- For xi = 2 To .Cells(.Rows.Count, .Columns.Count).End(xlUp).Row
- '³Ì«á¤@Äæ: 2¦C->³Ì«á¦³¸ê®Æªº¦C,
- 'ª«¥ó¦CªºÁ`¼Æ: Rows.Count,
- 'ª«¥óÄ檺Á`¼Æ:.Columns.Count
- .Range("A1").AutoFilter 1, .Cells(xi, .Columns.Count)
- '¦Û°Ê¿z¿ï: ·Ç«h¬O->³Ì«á¤@Ä檺¨C¤@¦C 2010,2011.....
- .Range("A2", .Range("a2").End(xlDown)).SpecialCells(xlCellTypeConstants).Resize(, 3).Interior.ColorIndex = IIf(xi Mod 2 > 0, 36, 34)
- '³]©w©³¦â: ¿z¿ï¨ìªº¸ê®Æ
- Next
- .Cells(1, .Columns.Count).EntireColumn = ""
- '²M°£³Ì«á¤@Ä檺¸ê®Æ
- .AutoFilterMode = False
- '¤u§@ªí: ¨ú®ø¦Û°Ê¿z¿ï
- End With
- End Sub
- Sub Ex4() '4# ªºµ{¦¡½X
- Dim E As Range
- With Sheet1
- For Each E In Range("A2", .Range("A2").End(xlDown))
- E.Resize(, 3).Interior.ColorIndex = IIf(Year(E) Mod 2 > 0, 36, 34)
- Next
-
- End With
-
- End Sub
½Æ»s¥N½X |
|