Formula or Macro to hide/unhide column

mistrmoto

New Member
Joined
Jun 2, 2012
Messages
11
I have a list on Sheet1 Column B with checkboxes in Column A with corresponding TRUE/FALSE in column C. I am wanting to show the list that is checked as columns in Sheet2, without spaces so that I can have a printable sheet for each type of list needed.

So far I have manually put in a formula for each column in Sheet2 to show the word for each row in Sheet1 that has a checked box, otherwise it will be blank. I would like for the columns in Sheet2 to be hidden when the box is unchecked in Sheet1, and to show when it is checked. I don't know of a formula to do this, and if a macro should be done I don't know how to do so.

Thanks for your help
Moto
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
here is an example of hiding rows

Code:
Sub CheckBox_NotChecked()
    With Sheets("B")
        If CheckBox1 = True Then
            .Rows("1").Hidden = True
        Else
            .Rows("1").Hidden = False
        End If
 End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,219,161
Messages
6,146,657
Members
450,706
Latest member
LGVBPP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top