ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

°õ¦æ¶¥¬q¿ù»~'13'

§PÂ_¦¡

½Ð°Ý§PÂ_¬YÀx¦s®æ(¤u§@ªí1)ªº­È¤£µ¥©ó¤u§@ªí2¬YÄæ[A1:A20]ªº­È,µ{¦¡À³¸Ó¦p¦ó¼g?
                                                                        ÁÂÁÂ

TOP

¦^´_ 1# ddhh4053
¤u§@ªí¨ç¼ÆCOUNTIF ¸Õ¸Õ

TOP

¤w¸Ñ¨M ÁÂÁÂGBK¤j¤j

TOP

°õ¦æ¶¥¬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

¥»©«³Ì«á¥Ñ kimbal ©ó 2012-11-3 15:10 ½s¿è
¦U¦ì³Â»¶°ª¤â:
   ¤p§Ì¬Oªì¾ÇªÌ¼g¤F¤@¬qµ{¦¡,¥Î¨Ó§PÂ_¿é¤Jªº¼Æ¦r¬O§_¥X²{¦bÄæ¦ì[A1:A100],°õ¦æ®É¥X²{ °õ¦æ ...
ddhh4053 µoªí©ó 2012-11-3 13:28


Worksheet_Change¬O©ñ¦bSHEET1 ¹ï§a?
¤U­±Â²¤Æ¤F¤p³\, ¥H¥N½X¤Wªº²z¸Ñ , ¦pªGSHEET2ªºA1:A100 ¦³ SHEET1 B2 ªº­È, ´N§âB2ªº­È¼g¤WB1
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     Application.EnableEvents = False
  3.     If Target.Address = [B2].Address Then
  4.         With Sheets("sheet1")
  5.             If WorksheetFunction.CountIf(Sheets("sheet2").Range("A1:A100"), .[B2]) = 1 Then
  6.                .[B1].Value = .[B2].Value
  7.             End If
  8.         End With
  9.     End If
  10.     Application.EnableEvents = true
  11. End Sub
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

ÁÂÁÂkimbal¤j¤j
    ¤w¸Ñ¨M§Úªº°ÝÃD ÁÂÁÂ

TOP

        ÀR«ä¦Û¦b : ª¾ÃÑ­n¥Î¤ßÅé·|¡A¤~¯àÅܦ¨¦Û¤vªº´¼¼z¡C
ªð¦^¦Cªí ¤W¤@¥DÃD