+ Reply to Thread
Results 1 to 4 of 4

New Worksheets created but hidden

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    396

    New Worksheets created but hidden

    I have a workbook with Code and Macros applied to track Staff Absence.

    When I use Sheet 1 to create a new user, if the last action I did was to hide a user, the new user is created, but hidden.
    If the last action i did was to unhide a user, the new user is created and NOT hidden.

    Is there any way to make any user created NOT hidden, as these users are just colleagues that need to be tracked, but not shown publicly.

    TIA
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: New Worksheets created but hidden

    Hi there,

    It seems (to me anyway!) that instead of inserting a new worksheet after ALL of the worksheets in the workbook, the new worksheet is inserted after the last VISIBLE worksheet.

    The renaming operation is performed on the actual last worksheet (which is hidden) - this would explain why the newly-inserted worksheet is not named as required.

    See if the following modification of your code cures the problem:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    396

    Re: New Worksheets created but hidden

    Perfick

    Thank you so much

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: New Worksheets created but hidden

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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] VBA for Ctrl+Home for all worksheets including hidden and Very hidden
    By Neilesh Kumar in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-17-2018, 08:28 AM
  2. Replies: 0
    Last Post: 04-13-2018, 01:18 PM
  3. [SOLVED] Macro to create new worksheets and auto populate cells in created worksheets
    By cole.young in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-05-2018, 02:47 PM
  4. Replies: 2
    Last Post: 03-13-2017, 12:47 PM
  5. [SOLVED] Form Created - VBA Dropdown Doesnt Work When The Rows Are Hidden?
    By npsnps in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-07-2016, 11:45 AM
  6. Copy Formatting from hidden row to range created by UserForm
    By smpatty08 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2014, 09:07 PM
  7. Replies: 3
    Last Post: 08-08-2006, 08:10 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