- ©«¤l
- 75
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 371
- ÂI¦W
- 1
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2010-5-4
- ³Ì«áµn¿ý
- 2024-11-25
|
[code][/code]¦^´_ 3# kekl
°Ñ¦Ò
Public Sub ¿ïªÑ()
Dim I As Integer
Sheets("½æ¶W¿ïªÑ").Select
[b3:c53] = ""
For Z = 3 To 52
Cells(Z, 2).Value = Val(Cells(Z, 1).Value)
Next
For I = 3 To 52
Sheets("¥D¤O¶i¥X").Select
Range("A2").Value = Sheets("½æ¶W¿ïªÑ").Cells(I, 2).Value
[¥D¤O¶i¥X!A5].QueryTable.Refresh BackgroundQuery:=False
Sheets("¨÷°Ó").Select
For a = 2 To 28
Cells(a, 2).Select
ActiveCell.FormulaR1C1 = "=IFERROR(MATCH(RC[-1],¥D¤O¶i¥X!C[5],0),"""")"
Next a
Sheets("½æ¶W¿ïªÑ").Select
Cells(I, 3).Select
ActiveCell.FormulaR1C1 = "=COUNT(¨÷°Ó!C[-1])"
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Next
End Sub |
|