+ Reply to Thread
Results 1 to 2 of 2

Combining Multiple Named Ranges

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Combining Multiple Named Ranges

    I'm working at changing over some macros from looking at Cell ranges to Named ranges, and wondering on the best approach.

    I'm currently using UNION to combined the ranges. But is there something better? The below is just a sample combining 2 ranges, but it will expand to be combining about 10 different named ranges.

    The goal is to 'protect' the macro if the user inserts any rows or columns on me. Below is piece of the code in trying to explain what I'm doing

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Combining Multiple Named Ranges

    There is a Names collection. Not sure it that will help you out but you can loop through each named range:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

+ 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. Combining named ranges
    By goels in forum Excel General
    Replies: 9
    Last Post: 11-18-2021, 06:20 AM
  2. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  3. Replies: 2
    Last Post: 05-10-2012, 10:38 AM
  4. countif and multiple named ranges
    By roland willems in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2008, 10:59 AM
  5. Combining Named Ranges
    By dmartindale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2007, 05:50 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