+ Reply to Thread
Results 1 to 3 of 3

Return Sheet Visibility Properties (VBA)

  1. #1
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Return Sheet Visibility Properties (VBA)

    Hi --

    I'm sure this questions has been asked before, but I've yet to find the simple solution I'm looking for.
    What code can I use if I just want to return the visibility property of a specified sheet (xlSheetVisible, xlSheetHidden, xlSheetVeryHidden)?
    Thank you

    -k

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Return Sheet Visibility Properties (VBA)

    Hi,

    You can use the visible property of the sheet like this..

    Please Login or Register  to view this content.
    Where a = 0, xlSheetHidden
    a = 2, xlSheetVeryHidden
    a = -1, xlSheetVisible
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    11-10-2011
    Location
    New York, NY
    MS-Off Ver
    MS Office: Excel 365
    Posts
    163

    Re: Return Sheet Visibility Properties (VBA)

    Perfect, thanks!

+ 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. change shape visibility on chart sheet
    By 4262mikeb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2019, 06:22 AM
  2. [SOLVED] Close & Save messing with sheet visibility
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-24-2016, 08:01 AM
  3. function to return file properties
    By nodrog100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2013, 10:37 PM
  4. Return File Properties into a Cell
    By nodrog100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2013, 09:39 PM
  5. Button to toggle visibility of all ovals on active sheet
    By apathetic in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-19-2013, 12:27 AM
  6. [SOLVED] Return Worksheet Properties
    By Mike_e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2012, 08:07 AM
  7. Change tab colour based on sheet visibility
    By amelio in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2011, 06:14 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