+ Reply to Thread
Results 1 to 3 of 3

Unable to convert array to range while performing Autofilter

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Unable to convert array to range while performing Autofilter

    Hi There,

    I am trying to select a range and pass the range for Auto-filtering, for some reason, it is not happening.
    I read in one of the articles that specifying a range will pick the first row in the range. Solution is to convert the range to array and pick each value in the column and then pass it on to AutoFilter.

    But, Advance-filter does not take Criteria, it only takes Criteria Range.
    I managed with lot of struggling to reach to the below state, however it is not working.

    Request the forum members to help.

    Regards,
    Sri

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Unable to convert array to range while performing Autofilter

    What array/range are you referring to?

    The CriteriaRange argument of AdvancedFilter has to refer to an actual range on a worksheet, you can't use an array held in memory.

    If you did have an array in memory that holds the criteria then you would need to write its contents to a range and then use a reference to that range for the CriteriaRange argument.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: Unable to convert array to range while performing Autofilter

    Hi Norie,

    Thank you for the response.
    I was trying to write the array contents to a range, but couldnt succeed doing it.
    What I have done now is explicitly mentioning the name of the sheets where the range is picked up and is working.

    Thank again for the support.

    Best Regards,
    Sri

+ 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. [SOLVED] AutoFilter - Criteria - Array - Range - Not working please assist.
    By kd7 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-22-2015, 08:34 AM
  2. Performing Calculations on Array Data
    By joeymountain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2014, 02:20 PM
  3. Unable to set Formula Array property of the range class
    By Chippi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 03:41 PM
  4. [SOLVED] Using an array from a range for Autofilter Criteria
    By J-Tin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 10:49 AM
  5. [SOLVED] Convert Autofilter range to values
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2012, 10:38 AM
  6. Performing a set of operations on an array of worksheets
    By Authentik8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2012, 10:23 AM
  7. Convert a Range to an Array
    By nsorden in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-08-2009, 01:28 PM

Tags for this Thread

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