Results 1 to 18 of 18

xlSheetVeryHidden Not Working At all

Threaded View

  1. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: xlSheetVeryHidden Not Working At all

    I've had another look and I made a mistake. The code I provided will only work if the "Services" sheet is not hidden when the workbook opens. Attached is your updated file. I've changed that code to...
    Private Sub Workbook_Open()
    
        Sheets("Main Office").Visible = True
        Sheets("Main Office").Activate
        Worksheets("SERVICES").Visible = xlVeryHidden
        
    End Sub
    When the workbook opens, this code will make the main office sheet visible if it was saved as hidden and then activate the main office sheet and make the service sheet veryhidden even if the services sheet isn't visible.
    As for the code on your sheets, they look ok to me, although I'm not quite sure what the Me.Visible = False is for.
    Also, and i'm not sure if this matters, but when the user clicks one of the buttons to active the other sheet, the sheet they are on will not be "very hidden".
    Buddy8-xlsheetveryhidden-not-working-at-all-sample.xlsm
    Last edited by gmr4evr1; 05-20-2016 at 08:36 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. xlSheetVeryHidden Module
    By pmakulski in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2015, 01:25 PM
  2. NEED HELP PLEASE!! VBA code to xlSheetVeryHidden
    By lester.ilao in forum Excel General
    Replies: 3
    Last Post: 10-28-2014, 10:14 PM
  3. XlSheetVeryHidden code before close (Method Error)
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2012, 12:27 PM
  4. Problems with XLSheetVeryHidden
    By alderran in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2007, 05:58 AM
  5. worksheets xlSheetVeryHidden and show them once password-app
    By Param in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 09:00 PM
  6. Trouble with copy of xlSheetVeryHidden
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-14-2005, 10:05 PM
  7. [SOLVED] Opeations on xlSheetVeryHidden worksheet
    By Frederick Chow in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2005, 03:06 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