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

[µo°Ý] ¥ÎExcelªº[¶i¶¥¿z¿ï]¤§[¤£­«Âпz¿ï], ³ºµM·|¿ù»~

[µo°Ý] ¥ÎExcelªº[¶i¶¥¿z¿ï]¤§[¤£­«Âпz¿ï], ³ºµM·|¿ù»~

½Ð±Ð½Ñ¦ì¤j¤j,
¥ÎExcel ªº[¶i¶¥¿z¿ï]¤§[¤£­«Âпz¿ï], ³ºµM·|¿ù»~, ¯u©_©Ç!
(53.3·|¦³¨âµ§: [D8]¤Î[D12]),
VBA ¦p¤U:
Sub ¤£­«Âпz¿ï1()
    Dim Ar As Range, eR&
    eR = [A65536].End(xlUp).Row
    Set Ar = Range("A8:A" & eR)
    Ar.AdvancedFilter xlFilterCopy, CopyToRange:=[D8], Unique:=True
End Sub
¤â°Ê¤]¤@¼Ë, ¦p¤U¹Ï:

­Y§ï¥ÎDictionary«h¨S°ÝÃD
Sub ¤£­«Âпz¿ï()
    Dim d As Object, Ar As Range, eR&, E
    Set d = CreateObject("Scripting.Dictionary")
    eR = [A65536].End(xlUp).Row
    Set Ar = Range("A8:A" & eR)
    For Each E In Ar
        d(E.Value) = ""
    Next
    [D8].Resize(d.Count) = Application.Transpose(d.keys)
End Sub
µ²ªG¦p¤U¹Ï:

ªþÀÉ
060315-¤é¤Àµ§¶q - ¤£­«Âпz¿ï.zip (383.94 KB)

¦^´_ 1# yen956
¦]¬° function °²³]§Aªº½d³ò¬O§t¼ÐÃDªº¡A©Ò¥H§â§AªºA8·í¦¨¼ÐÃD¦C
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 2# stillfish00
ÁÂÁ¤j¤j§Ö³tªº¦^ÂÐ, ÁÂÁÂ!
¦ý¬O³o¦¸§Ú³s¼ÐÃD[A7]¤]¿ï¶i¥h, µ²ªGÁÙ¬O¤@¼Ë.
§Ú¸Õ¹L§â[A8] copy ¨ì [A12], µ²ªG¤]¤@¼Ë.
¤]¸Õ¹L§â[A8][A12]§¹¥þ²M°£, ¦A¿é¤J53.5, µ²ªG¤]¤@¼Ë.
(¦n¹³¤]¤£¬O¤å¦r»P¼Æ¦rªº®æ¦¡°ÝÃD)
test.gif

TOP

¥»©«³Ì«á¥Ñ stillfish00 ©ó 2017-3-29 19:10 ½s¿è

¦^´_ 3# yen956
§Ú¥Î§AªºÀɮפâ°Ê¸Õ¤F´X¦¸¡A¦³®É­Ô¸ò§A¤@¼Ë¡A¦³®É­Ô¥¿±`
¤S§â¤À§O§â¨âºØ±¡ªp³£¿ý»s¥¨¶°¤U¨Ó
¤£¥¿±`ªº±¡ªp¡A¥¨¶°¸Ì³£¬O±qA8¶}©l(¿ïªº®É­ÔÁÙ¬O¦³¿ïA7...) :
Range("A8:A21").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
        "D7"), Unique:=True

¥¿±`ªº±¡ªp¡A¿ý»sªº¥¨¶°¸Ì´N¬O±qA7¶}©l¡C

·Pı¬OExcel¤â°Ê¾Þ§@¤Wªºbug , VBA ªº¸Ü´N¬O­n§t¼ÐÃD¦C

§A¥i¥H¬Ý§Aªº¹Ï¡A§A¦³¿ïA7:A21¡A¶i¶¥¿z¿ïµøµ¡«o¬O"R8C1:R18C1"???¡A³oÃä´N·|³y¦¨¿ù
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¥»©«³Ì«á¥Ñ jackyq ©ó 2017-3-29 19:47 ½s¿è

¹êÅçµ²ªG:

­n¥ý¥s¥X ¶i¶¥¿z¿ï , ¤~¯à¥Î·Æ¹«¿ï½d³ò
¤£¯à¥ý¥Î·Æ¹«¿ï½d³ò , ¤~¥s¥X ¶i¶¥¿z¿ï
¦]¬°¥ý¥Î·Æ¹«¿ï½d³ò,  ¦A¥s¥X ¶i¶¥¿z¿ïµøµ¡

¦¹®É ¿z¿ïµøµ¡ªº½d³ò ¬O¤W¤@¦¸ªº³]©w­È ( ªº³]©w­È ¦Ó¤£¬O§A­è­è¥Î·Æ¹«¿ïªº³Ì·s½d³ò )
¦ý¬O§A«o¥H¬°EXCEL¤w¸gÀ°§A¦Û°Ê±a¤J­è­è·Æ¹«¿ïªº½d³ò

TOP

¦^´_ 1# yen956

³o¬OªÑ²¼ªºªF¦è¶Ü?

TOP

¥»©«³Ì«á¥Ñ yen956 ©ó 2017-3-29 20:47 ½s¿è

to stillfish00 ¤j¤j:
©êºp, ¤ÓµU«æ¤F, ¨S¸ÕVBA´N¦^¤å, ¹ê¦b©êºp.
¬Ý¨ì 5# jackyq ¤j¤jªº«üÂI ´Nª¾¹D¿ù¦b¨º¸Ì,
ÁÙ¬O­n¥Î VBA ¤ñ¸û«OÀI.¦Ó¥B
VBA ªº¸Ü´N¬O­n§t¼ÐÃD¦C, ÁÂÁÂ!!
to jackyq ¤j¤j:
­n¥ý¥s¥X ¶i¶¥¿z¿ï , ¤~¯à¥Î·Æ¹«¿ï½d³ò
¤£¯à¥ý¥Î·Æ¹«¿ï½d³ò , ¤~¥s¥X ¶i¶¥¿z¿ï

ÁÂÁ¦A¦¸«ü¾É,¬O¦b½m²ßVBA®Éµo²{ªº.¬O¤£¬OªÑ²¼´N¤£²M·¡¤F.
(¨ä¹êVBA§ï¥ÎDictionary«á¤w¨S°ÝÃD¤F,§¹¾ãVBA©ñ¦bSheet3)
(­ìÀÉ¥X¦Û http://forum.twbts.com/thread-19422-1-1.html)
¦A¦¸ÁÂÁ½Ѧì¤j¤j!!

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD