+ Reply to Thread
Results 1 to 6 of 6

Reference every sheet (with exceptions) within a workbook

  1. #1
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Reference every sheet (with exceptions) within a workbook

    Good Morning,

    i currently use the code fragment below to cycle through every sheet of a workbook to perform a function, I would like to add a list of exceptions that the sheet won't be ran through.

    any Idea's?

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Reference every sheet (with exceptions) within a workbook

    It depends on what the exceptions are.... They could be a value on the worksheet or a tab name etc
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Reference every sheet (with exceptions) within a workbook

    Hi AndyLitch,
    The exceptions would be entire worksheets based upoin thier name "Overview","Summary" etc.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Reference every sheet (with exceptions) within a workbook

    We'd need to know the full list of exceptions to write the code for that ......

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Reference every sheet (with exceptions) within a workbook

    you can test that
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Reference every sheet (with exceptions) within a workbook

    Works perfectly - thank you.

    didn't know about the Case function before -- looks quite useful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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