+ Reply to Thread
Results 1 to 3 of 3

VBA Filter method

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    VBA Filter method

    Hi,

    I have a single dimensional array

    x=Array("aa","bb","cc","dd","ee","ff","gg","hh","ii","jj","kk")

    want to filter and get an array that should have only
    "cc","dd","ee","ff"
    name for output array is "Refined"

    I know it can be done with loop but want to know can it be done with vba filter method (Refined=Filter(x,"<>aa,bb,gg,hh,ii,jj,kk")
    Teach me Excel VBA

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: VBA Filter method

    No it can't, at least not without a loop.
    Remember what the dormouse said
    Feed your head

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: VBA Filter method

    currently I am using a sheet column writing raw array to sheet

    sort it
    filter it

    loading visible cells to array. not efficient but for the time being.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to filter from 0601 to 0622 use a easy method?
    By woshichuanqilz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2017, 05:03 AM
  2. hide rows with 0 values in columns using filter method
    By Goodstart14 in forum Excel General
    Replies: 1
    Last Post: 12-16-2015, 12:32 AM
  3. [SOLVED] problem with union method in data filter
    By edopts in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-11-2014, 12:46 PM
  4. advanced filter and method range of object_worksheet failed
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2013, 06:01 PM
  5. Isolating Duplicates - Better Method Than Conditional Format and Filter?
    By Shadefalcon in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-02-2013, 11:49 AM
  6. Auto Filter Method in Range failed - error
    By BorisMKD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2009, 05:24 AM
  7. need macro\method that would allow user input to a data filter
    By CC_rider in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1