+ Reply to Thread
Results 1 to 3 of 3

Query Hide State of Column Ranger and Hide if False

  1. #1
    Registered User
    Join Date
    04-16-2009
    Location
    Kilkenny, Ireland.
    MS-Off Ver
    Excel 365
    Posts
    47

    Query Hide State of Column Ranger and Hide if False

    Hi,

    I believe my query is pretty straightforward but many of the methods I have found relate to PivotTables or do not seem to be quite what I am looking for, so decided to come to the experts.

    Basically, I want to create a macro that checks whether a specified range of columns is hidden, and

    a) hide them if they are not hidden, or
    b) unhide them if they are hidden,

    i.e. toggle the Hide state.

    What method can I use to query the hidden state of a selected range of columns and return a boolean value?

    Many thanks in advance.

    Orson.
    Last edited by Orson100; 06-18-2009 at 07:52 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Query Hide State of Column Ranger and Hide if False

    Amend the columns to suit your workbook
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-16-2009
    Location
    Kilkenny, Ireland.
    MS-Off Ver
    Excel 365
    Posts
    47

    Re: Query Hide State of Column Ranger and Hide if False

    Great stuff, thanks Roy, that has done the trick.

    Orson.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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