Excel VBA: shaandhayn sare oo leh shuruudo badan oo kala duwan (5 hab) -

  • La Wadaag Tan
Hugh West

Marka lagu shaqeeyo tiro badan oo xog ah oo loo baahan yahay in la dejiyo filtarrada badan hal mar, Filtering horumarsan gudaha Excel ayaa ku anfacaya. Waxa kale oo lagu dabaqi karaa si loo nadiifiyo xogtaada iyadoo la saarayo nuqullo. Markaad codsanayso Filter Sare , VBA code aad ayuu u fudud yahay in la fuliyo. Casharradan, waxaan ku tusi doonaa sida loo codsado VBA Advanced Filter ee kala duwanaanta shuruudaha Excel .

Soo deji Buug-hawleed-shaqeedka

> Soo deji kan ku celceli buuga shaqada si aad jimicsi u samayso intaad akhrinayso maqaalkan. VBA Advanced Filter.xlsm

gudaha Excel

Qaybaha soo socda ee hoose, waxaanu kaga hadli doonaa 5 hababka loo isticmaalo VBA Advanced Filter ee shuruudo badan. Marka hore, waxa laga yaabaa inaad u baahato inaad ogaato macnaha Filter Advanced VBA .

    >
  • > AdvancedFilter:
waxa loola jeedaa shay kala duwan. Waxaad dejin kartaa kala duwanaantaada halka aad rabto inaad ka dalbato Filter. >
  • >Talaabo: waa dood loo baahan yahay oo leh laba ikhtiyaar, xlFilterInPlace ama xlFilterCopy >. xlFilterInPlace waxaa loo istcmaalaa in lagu shaandheeyo qiimaha meesha uu yaallo xogta. xlFilterCopy waxaa loo isticmaalaa in lagu helo shaandhada shaandhada meel kale oo la doonayo.
  • CriteriaRange: waxay u taagan tahay shuruudaha uu qiimuhu noqon doonoshaandhayn Isticmaal dooda Run si aad u shaandhayso oo kaliya qiimayaasha gaarka ah. Haddii kale, sida caadiga ah, waxaa loo arkaa inay tahay Been .
  • > >Sawirka hoose, muunad xog ah ayaa la bixiyay si loo dabaqo dhammaan filtarrada aan rabno inaan sameyno.

    >

    1. Codso Shaandheynta Sare ee VBA ee AMA Shuruudaha Range gudaha Excel

    Habka ugu horreeya, waxaan ku dabaqi doonnaa AMA shuruudaha addoo isticmaalaya VBA Advanced Filter . Aynu nidhaahno, waxaan rabnaa in aan sifeyno xogta magaca alaabta Cookies iyo Shukulaatada . Si aad u dabaqdo AMA , waa inaad qiyamka gelisaa safaf kala duwan. Raac tillaabooyinka hoos ku xusan si aad hawsha u qabato > >>

    Tallaabada 1:

    • Riix Alt + F11 si aad u furto VBA Macro .
    • guji Gelida. >
    • >>Dooro Moduleka >

    >

    > Tallaabada 2:>>
    • Kaddib, ku dheji VBA code si aad u codsato AMA. >
    • >
      3735

      > 18>

      > Tallaabo 3:

      • Markaa, kaydso barnaamijka oo tabo F5 si uu u shaqeeyo.
      • >Sidaa darteed, waxaad heli doontaa natiijooyinka la miiray sida ka muuqata sawirka hoose. > 12

        >

        > > >
      • Natiijo ahaan, waxaad heli doontaaNooca hore ee xogtaada
      > > > Ka sii akhri: Excel VBA Tusaalooyinka Shaandheynta Sare ee Shuruudaha (6 Shuruudaha) 14> 2. Samee VBA Filter Advanced for the AND Criteria in Range in Excel

      Si la mid ah qaabkii hore, waxaan hadda samayn doonaa VBA Filter Horusocod ah Iyo Shuruudaha. Aynu nidhaahno waxaan rabnaa inaan ogaano cookies-ka leh qiimaha $0.65 sida ka muuqata sawirka hoose. Si aad u codsato AMA , waa in aad qiyamka gelisaa tiirar kala duwan. Si aad u codsato iyo , raac tilmaamaha hoose Si aad u furato VA Macro , riix @> <+ 1>

    • >VBA codes ku jira Module cusub 1> F5
    • si aad u socodsiiso barnaamijka ka dib markaad kaydiso. >Ugu dambayntii, hel natiijooyinka la miiray. Wax badan ka sii akhri: >VBA si ay ugu koobiyaan xogta xaashi kale oo leh shaandhayn sare oo Excel >

      Waxa kale oo aad codsan kartaa AMA iyo iyo labadaba marka la isku daro. Tusaale ahaan, waxaad rabtaa inaad hesho qiimayaasha Cookies ama Chocolates , laakiin Kukiyada, waxaa jira shuruudo kale oo qiimo $0.65 lagu dabaqo. Raac nidaamkaHoosta si loo sameeyo ka dib markii la furay VBA Macro . >

      6154

      >>

      > Tallaabada 2: > >>>
    • ka dibna , kaydi barnaamijka marka hore riix F5 si aad u socodsiiso.
    • Sidaas awgeed, waxaad ka heli doontaa qiyamka qaar iyo iyo AMA. 11>
    >> 3>

    Akhri wax dheeraad ah: Codso shaandhaynta sare oo ku salaysan shuruudo badan oo ku jira hal tiir gudaha Excel >

    > Akhrisyo la mid ah:
      > shaandhayn horumarsan oo leh shuruudo badan oo Excel ah (15 Tusaalayaal ku habboon)
    • Firfircoonaanta Sare ee Firfircoon ee Excel (VBA & Macro) 2>
    • >
    • >Sida loo Isticmaalo Shaandheeyaha Sare ee VBA (Tallaabo Tallaabo-Tallaabo ah)
    • > 10> 1> Shaandheyn Sare oo leh Range Shuruudaha Excel (18 Codsiyada)
    • Filter Sare Sare ee Excel Aan Shaqeynin (2 Sababood & Xalka)
    > 4. U isticmaal Shaandheynta Sare ee VBA Qiimo Gaar ah oo leh Shuruudo Badan Excel

    Sidoo kale, haddii aad nuqul ka haysato xogtaada, waxaad ka saari kartaa th em marka la shaandhaynayo. Waxaan ku dari doonaa Unique dood Run si aan u helno qiyamka gaarka ah oo aan tirtirno nuqullada. Raac tilmaamaha hoos ku qoran

    >>>>

    > Tallaabo 1:

      > Marka hore, fur VBA Macro adiga oo riixaya Alt + F11

      Tallaabada 2:

      • Ka dib, taabo F5 si aad u socodsiiso barnaamijka ka dib kaydinta Sida loo Isticmaalo Shaandheynta Sare ee Diiwaanada Gaarka ah oo keliya Excel
      >>> 14> 5. Samee shaandhaynta sare ee VBA ee Kiiska Shuruuda ah > Marka lagu daro hababkii hore, waxaad sidoo kale dalban kartaa shuruudaha qaacidooyinka . Tusaale ahaan, waxaan rabnaa inaan helno Isugeynta qiimaha oo ka badan $100 . Si aad u dhammaysato, si fudud raac tillaabooyinka > > > Tallaabada 1: > VBA Macro , riix Alt + F11 .
    • Dooro Module cusub oo ku dheji codesyada VBA Talaabada 2: > >
    • Marka labaad, kaydi barnaamijka oo taabo badhanka F5 si aad u aragto natiijooyinka
    • >
    >>> .Waxaa intaa dheer, waxaad natiijooyinka ku heli kartaa meel wanaagsan ha ahaato qayb cusub ama xaashi shaqo oo cusub adoo adeegsanaya xlFilterCopySi fudud, ku dheji VBAcodes oo socodsii si aad u hesho natiijooyinka Sheet6 > ee u dhexeeya B4:E11 .
    7505

    • Sidaa darteed, eeg natiijada kama dambaysta ah xaashi cusub 'Sheet6' >
    >

    36>

    Akhri wax dheeraad ah: Sida loo Isticmaalo Filter Sarreysa Haddii Kala Duwanka Shuruudaha ay ka kooban tahay qoraalka Excel

    > Gabagabo >Si loo soo koobo, waxaan rajeynayaa inaad hadda fahantay sida loo isticmaalo VBA filter sare leh gudaha Excel sikala shaandhayso dhawr shuruudood. Dhammaan hababkan waa in loo isticmaalo in lagu baro laguna tababaro xogtaada. Eeg buuga layliga oo isticmaal waxaad baratay Taageeradaada muhiimka ah awgeed, waxa nagu dhiirigaliyay in aanu sii wadno soo bandhigista siminaarada sidan oo kale ah Fadlan nagu soo ogeysii sidaad u aragto qeybta faallooyinka ee hoose > Exceldemy shaqaalaha ayaa sida ugu dhaqsaha badan uga jawaabi doona su'aalahaaga >Nala joog oo sii wad wax barashada

    Hugh West waa tababare iyo falanqeeye heer sare ah oo tayo sare leh oo khibrad ka badan 10 sano u leh warshadaha. Waxa uu shahaadada koowaad ee jaamacadda ka qaatay xisaabaadka iyo maaliyadda iyo maamulka ganacsiga. Hugh waxa uu jecel yahay waxbaridda waxana uu sameeyay hab waxbarid gaar ah oo ay fududahay in la raaco lana fahmo. Aqoontiisa khabiirka ah ee Excel waxay ka caawisay kumanaan arday iyo xirfadlayaal adduunka oo dhan ah inay horumariyaan xirfadahooda oo ay ku fiicnaadaan shaqadooda. Isaga oo u maraya balooggiisa, Hugh waxa uu aqoontiisa la wadaagaa adduunka, isaga oo siinaya casharro Excel ah oo bilaash ah iyo tababar online ah si uu uga caawiyo shakhsiyaadka iyo ganacsiyada in ay gaaraan awooddooda buuxda.