Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Dim i As Integer, ws as worksheet For Each ws in ActiveWorkbook.Worksheets For i = 1 To 255 If ws.Cells(3, i).Value = 1 Then ws.Columns(i).Hidden = True End If Next Next Steph wrote: Hi. Is there a way to have vba scan every visible worksheet, and look in row 3. If there is a 1 in a cell in row 3, hide that column? Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide Column If Usedrange of Column ISBLANK Follow-up | Excel Discussion (Misc queries) | |||
Hide Column If Usedrange of Column ISBLANK | Excel Discussion (Misc queries) | |||
How to hide a column | Excel Discussion (Misc queries) | |||
Hide column or row based on a cell in the column or row? | Excel Discussion (Misc queries) | |||
How to hide a column when value=1 | Excel Programming |