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

¶i¶¥¿z¿ïªº°ÝÃD

¶i¶¥¿z¿ïªº°ÝÃD

Dear ¤j¤j

      ¦³¤@­Ó¤p°ÝÃD·Q½Ð±Ð¤j¤j­Ì,´N¬O§Ú¦b¨Ï¥Î"¶i¶¥¿z¿ï"³o­Ó¥\¯à®É,¦n¹³µLªk¸ó·~°õ¦æ
      ¨Ò¦p¦bsheet2¨Ï¥Î¶i¶¥¿z¿ï«á,¦b"½Æ»s¨ì"³o­Ó³¡¥÷¿ï¨ìsheet1½T·|¥¢±Ñ
      ¥t¥~¦b¨Ï¥Îvba¼¶¼g®É,¤]·|¦³³o¼Ëªº°ÝÃD,µ{¦¡½X¦p¤U  (µLªk°õ¦æ)
  Sheet2.Select
   Sheet2.Range("C4").Select
   Sheet2.Range(Selection, Selection.End(xlToRight)).Select
   Sheet2.Range(Selection, Selection.End(xlDown)).Select
   Selection.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheet1.Range("A2"), Unique:=True
   Sheet1.Select
   Range("A4").Select

          ¬O§_¦³¸Ñ¨Mªº¤è¦¡©O???

¦^´_ 2# oobird


    ¥u­n¦b¥Øªº¤u§@ªí°õ¦æ¶i¶¥¿z¿ï,´N¥i¥H¸ó¤u§@ªí°õ¦æ
¤Ó·PÁ¤F.

TOP

¦^´_ 11# FAlonso


    ÁÂÁ´£¨Ñ§ÚÄ_¶Qªº·N¨£~:D

TOP

§Ú§â¼Ó¥Dªºcode­ì¸Ë¶ñ¤J¼Ò²Õ¦A¹B¥Î,Ô£¨Æ¤]¨S¦³,µ{¦¡ÅÞ¿è¬Oµ´¹ï¥¿½Tªº
·Pı³o­ÓError 1004¬O±æ¤Ñ¥´¨ö,³ßÅwªº®É­Ô«K¥X²{
ÁÙ¦³´N¬O¨ººØselect§¹¤Send¤Sselectªº,³Ì¦n¥Îcurrent region
"Excel VBA»P¸ê®Æ®w¾ã¦X¤j¬¡¥Î"¤@®Ñ¦³¸Ô²Ó¸ÑÄÀ,³o®Ñ«Ü´Î
80 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 8# hugh0620
  1. Private Sub CommandButton1_Click()
  2.    Sheet2.Range("C4").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Sheet1.Range("A1:A9"), CopyToRange:=Sheet1.Range("C5:j5"), Unique:=True
  3. End Sub
½Æ»s¥N½X
­n¥Î­pºâ¦¡·Ç«h,­pºâ¦¡·Ç«hªºÄæ¦ì¦WºÙ¶·¤£¦P©ó¸ê®Æ®wªºÄæ¦ì¦WºÙ
Sheet1.Range("A1:A9") ¬O·Ç«hªº½d³ò ¦p¹Ï:


TOP

a.gif

TOP

¦^´_ 6# GBKEE


    ¤j¤j~ «Ü·PÁ§A³o¼Ë¼ö¤ßªº¦^ÂÐ~
    «Ü©êºp  §Ú¨S¦³ªí¹Fªº«Ü²M·¡
    §Æ±æ³z¹LSheet1 A2³o­ÓÄæ¦ì~·íKEY WORD~ ¥h¿z¿ï¥X sheet2 ¤¤¸ê®Æ²Å¦Xsheet1³o­ÓÄæ¦ì
   ¨Ò: sheet1 A2 = 1
          ´N¿z¥X sheet2 ¸ê®Æ¤¤²Å¦X1 ªº¸ê®Æ

   ³o¼Ë»¡©ú,§Æ±æ¤j¤j¯à¤F¸Ñ

TOP

¦^´_ 5# oobird


    µ¥¯Å¤£°÷~ µLªk¤U¸ü~ §Ú·|§V¤O½Äªº~ ¦n¤U¸ü¤j¤j´£¨ÑªºÀÉ®×

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-12-9 09:58 ½s¿è

¦^´_ 4# hugh0620
Selection.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Sheet1.Range("A2"), Unique:=True
³o¸Ì§ï¬° A4 , A2 ªº­È¬°1¤£¬O ¸ê®ÆªºÄæ¦ì©Ò¥H·|²£¥Í¿ù»~ ¦ý¦pA2 ªº­È=""  µ{¦¡·|¦Û°Ê²£¥Í,¸ê®ÆªºÄæ¦ì ¥i¸Õ¸Õ¬Ý  
­×§ï§Aªºµ{¦¡½X¦p¤U,¬O§_¬O§Aªº­ì·N.
Private Sub CommandButton1_Click()
   Sheet2.Range("C4").CurrentRegion.AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Sheet1.Range("A1:A2"), CopyToRange:=Sheet1.Range("A4:H4"), Unique:=True
End Sub
PS: CriteriaRange:=Sheet1.Range("A1:A2"), ªºÀx¦s®æ¥i¥þ³¡¬°ªÅ¥Õ ,¦ý¤£¥i¦³¸ê®ÆªºÄæ¦ì¤¤§¨Âø¦³ªÅ¥ÕÀx¦s®æ¤Î¤£¬O¸ê®ÆªºÄæ¦ì

TOP

´ú¸Õ¶i¶¥¿z¿ï.rar (8.2 KB)

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD