+ Reply to Thread
Results 1 to 3 of 3

VBA: Are named ranges a part of a collection?

Hybrid View

  1. #1
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    VBA: Are named ranges a part of a collection?

    Hey everyone;

    Writing up some code, and I have a workbook with many named ranges. Question is simple...

    Are named ranges a part of a collection object that I can use?

    Looking to do something like:
    For each NM in workbook.namedranges
    for each cell in NM
    blahblahblah
    next
    next
    Bonus points if you let me know how to determine collection objects on my own in the future!
    Last edited by Miraun; 05-27-2014 at 12:29 PM.
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA: Are named ranges a part of a collection?

    they are in application.names
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: VBA: Are named ranges a part of a collection?

    Give us some reputation then

+ 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. Define only 2 named ranges from a list of named ranges...
    By abhi900 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-29-2014, 04:20 AM
  2. Remove part of a string before adding to New Collection
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2012, 10:03 AM
  3. Collection of Data from different ranges to one range
    By tariqnaz2005 in forum Excel General
    Replies: 2
    Last Post: 05-19-2011, 10:57 AM
  4. Named Range Not In DAO Tabledefs Collection
    By chergh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2008, 09:13 AM
  5. Alternitive to Collection of Ranges
    By Abode in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2006, 11:50 AM

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