Closed Thread
Results 1 to 5 of 5

how to ignore hidden sheet when renaming all visible sheets and reordering all visible she

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    how to ignore hidden sheet when renaming all visible sheets and reordering all visible she

    Can someone please help me with the following issue that I have

    So I have a code that basically assigned to a button and when I hit the button it renames all the sheets in a way I want ECOSHEET 1 , 2, 3,etc… and if the order is wrong it reorders it.
    The problem that I have is the hidden sheet ! so I have a button that uses the hidden sheet and it doublicates it, so the other button basically renames all sheets and reorders them, the problem that I have is the fact that the hidden sheet is also being counted in the code
    So lets say I have
    ECOSHEET 1 ( my main sheet where the buttons are )
    ECO sheet that is hidden sheet
    And the next sheets are as follow when they added ECOSHEET 2, ECOSHEET3,etc..

    What is happening is the code is taking the hidden sheet and renaming it as well
    So I have in tabs ECOSHEET1,ECOSHEET3,etc…. ( the ECOSHEET 2 now becomes the hidden one )

    I need to revise the code in a way so it completely ignores the hidden sheet ! can anyone help please ? I am new to VBA and here is my current code , please ignore all comments as I was testing those THANK YOU FOR HELP


    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 01-04-2014 at 11:18 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to ignore hidden sheet when renaming all visible sheets and reordering all visible

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Last edited by FDibbins; 01-04-2014 at 11:18 AM.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: how to ignore hidden sheet when renaming all visible sheets and reordering all visible

    I have added code tags for you - this time Please use them in future
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: how to ignore hidden sheet when renaming all visible sheets and reordering all visible

    Also posted in Commercial Services

    http://www.excelforum.com/commercial...ignore-it.html
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: how to ignore hidden sheet when renaming all visible sheets and reordering all visible

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hidden/Visible sheets in listbox
    By DRoberts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2009, 08:18 AM
  2. Count visible, hidden, veryhidden sheets
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2008, 11:51 AM
  3. Hidden and visible sheets-swap
    By KausBorealis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-20-2008, 03:59 PM
  4. Making sheets visible and hidden to users
    By Xlyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2005, 04:06 PM
  5. [SOLVED] Making sheets visible / hidden
    By Xlyr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2005, 04:06 PM

Tags for this Thread

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