+ Reply to Thread
Results 1 to 2 of 2

how do i find out which array range?

  1. #1
    Forum Contributor
    Join Date
    03-10-2017
    Location
    USA
    MS-Off Ver
    office 2016
    Posts
    393

    how do i find out which array range?

    Im using this code to set up arrays and then run a code called test to do stuff with the array. However, each array has a different range and the test code needs to adjust its code for each. I'm thinking of adding and if statement to determine which array the code is working with then adjust the start point in the test code.

    I cant figure out how to find the array range. Unfortunately all the arrays are on one page so the name is the same its just the range thats different. How can i look for the range being used before the Next statement.

    Please Login or Register  to view this content.
    I was thinking of adding something like

    Please Login or Register  to view this content.
    but obviously thats the wrong way to find the range. In order to do this I believe ill have to make the test code a part of the array code... put it in just before the ending next statement.
    Last edited by kevinu; 02-02-2018 at 08:07 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: how do i find out which array range?

    Maybe something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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] Location to print array not find error 9 out of range
    By incobart in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-27-2017, 02:52 AM
  2. Best method to find an array in a range?
    By goatlip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2016, 10:06 AM
  3. Replies: 1
    Last Post: 05-18-2016, 05:00 AM
  4. Find Array and If for Range/Columns VBA
    By angeleenmc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2015, 02:59 PM
  5. [SOLVED] Need to find average of an array if corresponding values are within a set range
    By Pallav001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2013, 03:06 AM
  6. range to array then find
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-02-2013, 08:41 AM
  7. [SOLVED] Add Range to Array find Array value and Paste back to Range
    By Foreverlearning in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-28-2012, 05:45 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