Results 1 to 7 of 7

How to hide PW protected tab on the excel sheet

Threaded View

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    61

    How to hide PW protected tab on the excel sheet

    Edited by FlameRetired Added code tags.

    I have below VBA, which PW protecting one of the sheets. What I need to change on my VBA to be able to hide this tab "##"

    Private Sub Workbook_SheetActivate(ByVal Sh As Object)
    Dim MySheets As String, Response As String
    MySheet = "##"
    If ActiveSheet.Name = MySheet Then
    ActiveSheet.Visible = False
        Response = InputBox("Enter password to view sheet")
            If Response = "ap" Then
                Sheets(MySheet).Visible = True
                Application.EnableEvents = False
                Sheets(MySheet).Select
                Application.EnableEvents = True
            End If
    End If
    Sheets(MySheet).Visible = True
    End Sub

    Thank you
    Last edited by FlameRetired; 02-06-2019 at 09:20 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Hide rows in a protected sheet.
    By Mark Dynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2017, 04:13 AM
  2. Hide/Unhide cells on protected sheet
    By snuffnchess in forum Excel General
    Replies: 1
    Last Post: 10-17-2015, 03:54 PM
  3. [SOLVED] VBA Hide/Unhide Rows when Sheet protected
    By Kinez101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2012, 01:34 PM
  4. Replies: 7
    Last Post: 01-24-2011, 03:13 AM
  5. Hide rows on a protected sheet with macro
    By darthshani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2009, 03:40 AM
  6. [SOLVED] Macro to hide rows-sheet is being protected
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2005, 03:15 PM
  7. [SOLVED] how to hide rows in a protected sheet
    By Prakash in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-18-2005, 11:06 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