+ Reply to Thread
Results 1 to 3 of 3

Unhide worksheet

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Unhide worksheet

    Hello,

    I am using the below macro to unhide worksheet:

    Please Login or Register  to view this content.
    My problem is for instance when I delete the worksheet with "CURRENT2" the macro stops working. Would you a way make that work? knowing that I have the worksheets are CURRENT1, CURRENT2, CURRENT3, CURRENT4, CURRENT5, CURRENT6.

    What I was looking forward is to having the possibility to if I delete the CURRENT2 to have the macro to unhide the CURRENT3...

    Hope I am clear enough, please get back to me if not.

    Thanks,
    Graig
    Attached Files Attached Files

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Unhide worksheet

    Change:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

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

    Re: Unhide worksheet

    Your code is explicitly stopping when it tries to unhide a nonexistent sheet.
    Perhaps this. (Add another OR condition if you anticipate more sheets that CURRENT99)
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Unhide all worksheet
    By bharat_shady in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 11:24 PM
  2. Hide/Unhide Rows in One Worksheet Based on Values in Cells in Another Worksheet
    By xponent_es in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2011, 03:26 PM
  3. Unhide worksheet
    By athard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-29-2010, 04:23 PM
  4. [SOLVED] how do i unhide a worksheet in excel 2003? unhide tab don't work
    By mikekeat in forum Excel General
    Replies: 2
    Last Post: 03-05-2006, 11:40 PM
  5. [SOLVED] Unhide Worksheet
    By Gavin in forum Excel General
    Replies: 2
    Last Post: 01-17-2006, 04:55 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