- ©«¤l
- 34
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 85
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-7-3
- ³Ì«áµn¿ý
- 2013-6-4
|
°õ¦æ¶¥¬q¿ù»~'13'
¦U¦ì³Â»¶°ª¤â:
¤p§Ì¬Oªì¾ÇªÌ¼g¤F¤@¬qµ{¦¡,¥Î¨Ó§PÂ_¿é¤Jªº¼Æ¦r¬O§_¥X²{¦bÄæ¦ì[A1:A100],°õ¦æ®É¥X²{ °õ¦æ¶¥¬q¿ù»~'13' «¬ºA¤£²Å
¦³¤j¤j¯à¬°§Ú¸Ñ°g£v ÁÂÁÂ
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = [b2] Then
With Sheets("sheet1")
Cells(2, 1) = WorksheetFunction.CountIf(Sheets("sheet2").Range("A1:A100"), Cells(2, 2))
If Cells(2, 1) = 1 Then
Cells(1, 2).Value = Cells(2, 2).Value
Else
Range("A2").Select
ActiveCell.FormulaR1C1 = ""
End If
Range("A2").Select
ActiveCell.FormulaR1C1 = ""
End With
End If
End Sub |
|