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

[µo°Ý] ¸ê®Æ­«½Æ¦ý¥uÅã¥Ü¥X¤@¦¸

[µo°Ý] ¸ê®Æ­«½Æ¦ý¥uÅã¥Ü¥X¤@¦¸

¦p¼ÐÃD

¤p§Ì·Q½Ð°Ý¤@¤U
­YÀx¦s®æ¤H¦W¦³­«½Æ¡@¦p¦ó¥uÅã¥Ü¤@¦¸¦Ó¤£·|­«½Æ¥[Á`©O
½Ð±Ð¦U¦ì¤j¤j¤F¡Ö¡¨¡Õ
¡@¡@  ¢Ï
¢°¡@Gary¡@¡@
¢±    Gary
¢²     LILY
¢³    JOHN
¢´    MOLLY
¢µ    MOLLY
¢¶    JAM
¢·¡@¦@¢´¤H¡]¤£¬O¢¶¤H¡^
WOW

TOP

¦^´_ 5# g93353

Cells(1, "B").Resize(d.Count, 1) = Application.Transpose(d.keys)

d.Count                                         ¦r¨å¤ºÃöÁä¦rªº¼Æ¥Ø(¼Æ¦r)
d.keys                                           ¦r¨å¤ºªºÃöÁä¦r(¾î¦V°}¦C)
Cells(1, "B")=Range("A1")=[A1]     Àx¦s®æA1
Cells(1, "B").Resize(d.Count, 1)      ±NÀx¦s®æA1¤§½d³òÂX¤j¬°d.Count¦C1Äæ
Application.Transpose(d.keys)         ±N¦r¨å¤ºªºÃöÁä¦r(¾î¦V°}¦C)Âà¸m¬°ª½¦V°}¦C

TOP

·PÁ¡@register313¡@¤j¤j
¥i¥H½Ð°Ý¤@¤U
Cells(1, "B").Resize(d.Count, 1) = Application.Transpose(d.keys)
³o¦æ©Òªí¥Üªº·N«ä¶Ü¡H¡H
WOW

TOP

¦^´_ 3# g93353
  1. Sub YY()
  2. Set d = CreateObject("scripting.dictionary")
  3. n = Application.Match("Á`¼Æ", Columns("A"), 0)
  4. For Each A In Range("A1:A" & n - 2)
  5.   If A.Value <> "" Then d(A.Value) = ""
  6. Next
  7. If d.Count <> 0 Then Cells(1, "B").Resize(d.Count, 1) = Application.Transpose(d.keys)
  8. Cells(n - 1, "A") = "¦@" & d.Count & "¤H"
  9. Cells(1 + d.Count, "B") = "¦@" & d.Count & "¤H"
  10. End Sub
½Æ»s¥N½X

TOP

ÁÂÁ¡@register313¡@¤j¤jªº¦^µª
·Q½Ð°Ý¤@¤U¡]SORRY­è­è¨S´£¨ì¡^¡@
­YRangeªº½d³ò¤£¬O¨ì.End(xlDown)¡@¡]¨ìÁ`¼Æªº«e¤@®æ¡^
¢Ó¢æ¡G
¡@  ¡@¢Ï
¢°¡@Gary¡@¡@
¢±    Gary
¢²     LILY
¢³    JOHN
¢´    MOLLY
¢µ    MOLLY
¢¶    JAM
¢·¡@¦@¢´¤H¡]¤£¬O¢¶¤H¡^
¢¸¡@Á`¼Æ

­Y¥Î±zªº¤èªk¡@¦pªG³£¨S¦³¤Hªº¸Ü¡@¦n¹³¤]·|Åã¥Ü¢°¤H
¤£ª¾¹D¢à¢Ï¢Ü¢Õ¢Óªº³]©w­n«ç»ò§ó§ï¡@©Î¬O¦³§O±o¤èªk©O¡Ö¡¨¡Õ
WOW

TOP

¦^´_ 1# g93353
  1. Sub XX()
  2. Set d = CreateObject("scripting.dictionary")
  3. For Each A In Range([A1], [A1].End(xlDown))
  4.   d(A.Value) = ""
  5. Next
  6. Cells(1, "B").Resize(d.Count, 1) = Application.Transpose(d.keys)
  7. Cells(1 + d.Count, "B") = "¦@" & d.Count & "¤H"
  8. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD