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

[µo°Ý] (¤w¸Ñ¨M¡AÁÂÁ¤j¤j­Ì) Ãö©ó¦p¦ó¦b¿z¿ï¤W¤U§PÂ_?

[µo°Ý] (¤w¸Ñ¨M¡AÁÂÁ¤j¤j­Ì) Ãö©ó¦p¦ó¦b¿z¿ï¤W¤U§PÂ_?

¥»©«³Ì«á¥Ñ av8d ©ó 2012-6-5 11:24 ½s¿è

Sheets("Data").Select
    Sheets("Data").Rows("1:1").Select
    Application.CutCopyMode = False
    Selection.AutoFilter

¥H¤W¬O±N²Ä¤@¦C¿z¿ï~¦pªG¦b°õ¦æ¤@¦¸«h±N¿z¿ï¨ú®ø~

¿z¿ïª¬ºA(·|¥X²{¤@­Ó¤è§Î½bÀY¦V¤Uªº«ö¶s)

§Ú·Q¤UIF§PÂ_~
°ÝÃD¤@:
§PÂ_²Ä¤@¦C¦pªG¦³(¤è§Î½bÀY¦V¤Uªº«ö¶s)~«hÀ°§Ú¨ú®ø³o¨Ç«ö¶s~¦pªG¨S¦³(¤è§Î½bÀY¦V¤Uªº«ö¶s)~«h¤£°µ¥ô¦ó°Ê§@
°ÝÃD¤G:
§PÂ_²Ä¤@¦C¦pªG¨S¦³(¤è§Î½bÀY¦V¤Uªº«ö¶s)~«hÀ°§Ú¼W¥[³o¨Ç«ö¶s~¦pªG¦³(¤è§Î½bÀY¦V¤Uªº«ö¶s)~«h¤£°µ¥ô¦ó°Ê§@

¥H¤W¨â­Ó°ÝÃD¬O¤À¶}ªº~½Ð°Ý¸Ó«ç»ò¤UIF¥h§PÂ_? ÁÂÁÂ

¦^´_ 1# av8d
  1. Sub xx()
  2. With Sheets("Data")
  3.   If .AutoFilterMode = True Then .AutoFilterMode = False
  4.   If .AutoFilterMode = False Then .[A1].AutoFilter
  5. End With
  6. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# register313


    ¤j¤j~§Úªº«ö¶s¬OCommandButton1

·í¸ê®Æ¿z¿ï®É~§Ú¥h°õ¦æIf .AutoFilterMode = True Then .AutoFilterMode = False

¥L¦³¦¨¥\¨ú®ø¿z¿ï¤F~¦ý¬OCommandButton1 «ö¶s·|®ø¥¢~¬O¤£¬O§Ú­þ§A§Ë¿ù¤F@@

TOP

¦^´_ 3# av8d

1.gif

¤W¶Ç§AªºexcelÀɮ׬O¤£¬O§ó¯àª¾¹D°ÝÃD©Ò¦b

TOP

¦^´_ 3# av8d

¿ý»s¥¨¶°´Nª¾¹D¤F
play.gif
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ av8d ©ó 2012-6-5 10:12 ½s¿è

¦^´_ 4# register313


    test1.rar (49.66 KB)

½ÐÂI¿ï¥ª¤W¨¤ªº¬õ¦â«ö¶s  ~  µM«áÂI ¥þ³¡Á`Äý  ~ ¬õ¦â«ö¶s´N®ø¥¢¤F~

§Ú«á¨Óµo²{¬O¼È®É®ø¥¢ªº~·í§ÚÂIA1¤S·|¥X²{¤F~©ó¬O§Ú´N¦h¤@¦æ Range("A1").Select µ¹¥L~ÁÂÁ¤j¤j


§Ú°O±o Range("A1").Select  ¥i¥H§ï¼g¦¨ Range [A1].Select ¦ý¬O¥L«o¥X²{ÄÝ©Ê¿ù»~ªº´£¥Ü@@

TOP

¦^´_ 6# av8d


Range("A1").Select
[A1].Select
Cells(1,1).select
Cells(1,"A").select

TOP

¦^´_ 7# register313


    ½Ð°ÝSheets("Data").Select¬O§_¤]¦³¬Ù²¤¼gªk~½Ð°Ý¤j¤jªº¬Ù²¤¼gªk³£¬O¦p¦ó¾Ç·|ªº©O? ÁÂÁÂ!

TOP

TOP

        ÀR«ä¦Û¦b : ÁÀ¨¥¹³¤@¦·²±¶}ªºÂAªá¡A¥~ªí¬üÄR¡A¥Í©Rµu¼È¡C
ªð¦^¦Cªí ¤W¤@¥DÃD