+ Reply to Thread
Results 1 to 3 of 3

Check reoccurring RangeName value in a workbook

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Check reoccurring RangeName value in a workbook

    Hello,
    I have a workbook with multiple worksheets.

    Many of the worksheets contain a range, named "PlaceHolder".
    I am looking for a macro to search through all the worksheets, find the range("PlaceHolder").value.
    When it comes across a value <> 0 than display a message like "Place Holders must be ZERO" and end the routine.

    I know how to do it using something like :"For Each ws in Worksheets |search if range exists| check value|Next ws", but this can slow down the process when I have a lot of worksheets.
    I am wondering if there is a quicker way to do this.

    Could you please advise?
    Thanks

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Check reoccurring RangeName value in a workbook

    Please Login or Register  to view this content.
    Last edited by mikerickson; 11-05-2022 at 11:10 AM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    593

    Re: Check reoccurring RangeName value in a workbook

    Thank you mikerikson, it works!

+ 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. How to Insert a Row under a Rangename
    By Excelnewbie112 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2012, 12:10 AM
  2. How Insert a Row/line down under a Rangename
    By Excelnewbie112 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2012, 07:26 PM
  3. Spreadsheet rangename value into VBA
    By bstubbs in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-22-2010, 11:37 AM
  4. rangename into combo (FillList)
    By pinstripe in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2007, 05:20 AM
  5. Sumproduct referring to a cell with rangename
    By chestp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2007, 11:38 AM
  6. [SOLVED] RangeName blocks of data
    By CLR in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2006, 02:00 PM
  7. How to return rangename of selection with VBA
    By shoba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2005, 12: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