- ©«¤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
|
¦^´_ 19# Airman
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng As Range, E As Variant, C As Variant, Ar As String, x_No, x As Variant
- x_No = Array(7, 39)
- Ar = "4,45,8"
- With Sheets(2) '
- 'With Sheets("Sheet1")
- .Activate '±N¥Ø«eªº¤u§@ªí¦¨¬°¨Ï¥Î¤¤ªº¤u§@ªí¡Cµ¥¦P©ó«ö¤@¤U¤u§@ªí¯Á¤Þ¼ÐÅÒ¡C
- Sheets(1).Range("J7", "P" & Sheets(2).[R6] + 5).Copy .[J7]
- Set Rng = .[J7].Resize(.[J7].End(xlDown).Row, 7)
- For Each E In Array(.[T5].Value, .[T5] - .[T3], .[T5] - .[T3] * 2) '´Á§Oªº°j°é
- '¡y·j´M¦bR7(=90´Á),R7-T3(=81´Á),R7-T3*2(=72´Á)¤TÓ´Á¼Æ~
- '.T5,T5-T3,T5-T3*2 '91,82,73 ½Ðק綠¦¡
-
- For Each x In x_No '¤ñ¹ï¼Æ¦rªº°j°é
- C = Application.Match(x, Rng.Rows(E), 0) '§ä¨ì¶Ç¦^¼Æ¦r
- If IsNumeric(C) Then
- With Rng.Rows(E).Cells(C)
- .Interior.ColorIndex = Split(Ar, ",")(0)
- .Font.ColorIndex = 3
- .Font.FontStyle = "²ÊÅé"
- End With
- End If
- Next
- If InStr(Ar, ",") Then Ar = Mid(Ar, InStr(Ar, ",") + 1)
- Next
- .[a1].Select '·Æ¹«°±¯d¦bSheets(2)ªº A1
- End With
- End Sub
½Æ»s¥N½X |
|