+ Reply to Thread
Results 1 to 8 of 8

Hide a many checkboxes when the column is hidden

Hybrid View

  1. #1
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Hide a many checkboxes when the column is hidden

    Place you number in cell "AB1" and alter the code in RED as below:-
    Set cl = Sheets("Project Cost").Range("$AC$1")
    If cl.Offset(, -1).Value = "1" Then
        cl.Resize(, 3).EntireColumn.Hidden = True
    Else
        cl.Resize(, 3).EntireColumn.Hidden = False
    End If

  2. #2
    Registered User
    Join Date
    05-08-2013
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Hide a many checkboxes when the column is hidden

    Hi Mick G,

    Thank you. That worked Great. One more question. Is it possible to hide two columns to the left as well? AB and AA.

    Thank you
    John

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Hide a many checkboxes when the column is hidden

    Change the following lines (in Red)
    NB:- the "1" value is now in "Z1"
    If cl.Offset(, -3).Value = "1" Then
        cl.Offset(, -2).Resize(, 5).EntireColumn.Hidden = True
    Else
        cl.Offset(, -2).Resize(, 5).EntireColumn.Hidden = False
    End If

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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