+ Reply to Thread
Results 1 to 4 of 4

How to get my code to target only sheets that are named in a specific ranges?

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    How to get my code to target only sheets that are named in a specific ranges?

    Hi,

    I have the following code:

    Please Login or Register  to view this content.
    Currently i have the section that ignores certain sheets but instead i'd like it to only cycle through a list of necessary sheets that currently resides in a sheet called control in colB between cells 7 and 106. However this list changes each day so there can be blank cells at the end which obviously dont equate to a sheet name. I've tried a few things but nothing seems to work. can anyone point me in the right direction?

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to get my code to target only sheets that are named in a specific ranges?

    Maybe:

    Please Login or Register  to view this content.
    Untested - try on a copy first.
    Last edited by JOHN H. DAVIS; 01-16-2014 at 09:13 AM.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to get my code to target only sheets that are named in a specific ranges?

    Hi John,
    there are 2
    End If
    End If
    need to get rid one of them.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to get my code to target only sheets that are named in a specific ranges?

    @AB33. Good catch. Edited Post.

+ 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] How to Delete Named Ranges in A specific Sheet
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2013, 08:05 PM
  2. [SOLVED] Adding Sheets - New Sheets to be named a specific cell within Each Sheet
    By Ryan Gomez in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-25-2013, 01:22 PM
  3. Replies: 0
    Last Post: 10-15-2012, 07:24 AM
  4. [SOLVED] Help with modifying code to copy specific cells on target row instead of the whole row
    By Spookman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2012, 05:22 AM
  5. How to List Named-Ranges only from specific Sheet
    By aefavant in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2010, 10:57 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