Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Autohide Columns
Is there a way to hide a column automatically if the sum of that column=0?
|
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Autohide Columns
Sub hidezerocols()
Columns.Hidden = False For i = 1 To 5 'number of columns If Application.Sum(Columns(i)) = 0 _ Then Columns(i).Hidden = True Next i End Sub -- Don Guillett SalesAid Software "Laus" wrote in message ... Is there a way to hide a column automatically if the sum of that column=0? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cutting and pasting from rows into columns and visa versa. | New Users to Excel | |||
Need a macro to hide certain columns | Excel Discussion (Misc queries) | |||
Selecting different multiple columns | Excel Worksheet Functions | |||
adding three consecutive columns | Excel Worksheet Functions | |||
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns | Excel Discussion (Misc queries) |