+ Reply to Thread
Results 1 to 3 of 3

Building an array to use in Autofilter

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Building an array to use in Autofilter

    The following code works:

    Please Login or Register  to view this content.
    But I want to dynamically assign that array from cell values. My shot at it (well, multiple shots at it, ending in...):

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    suck canal water.

    As these values can change I need to be able to dynamically assign them and I know whatever it is, I am missing something painfully obvious, but I just can't put my finger on it.

    Can someone show me where I messed up?

    Thank-you!

  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: Building an array to use in Autofilter

    When you create an array from a range it's 2-dimensional, the array for the filter needs to be one-dimensional.

    Try transposing the array.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Building an array to use in Autofilter

    WoW!

    OK, I now really MUST run off to work, but how did that solve the problem? (In other words, it sure did!!!)

+ 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. building a revenue forecasting model and need calendar building help
    By miken33 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-11-2013, 06:53 PM
  2. Replies: 2
    Last Post: 10-08-2012, 12:49 PM
  3. Help Building Array
    By jkelly228 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-14-2011, 01:49 PM
  4. Building An Array Using Nonlinear Equation
    By StanUkr in forum Excel General
    Replies: 0
    Last Post: 08-30-2006, 06:34 PM
  5. [SOLVED] Building an array of worksheets for printing
    By DRK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2005, 09: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