Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How would one simplify the following:
If Target.Count 1 Then GoTo errHandler If Target.Column = 7 Then Target.Columns.ColumnWidth = 15 Else Columns(7).ColumnWidth = 8 If Target.Column = 8 Then Target.Columns.ColumnWidth = 25 Else Columns(8).ColumnWidth = 15 End If If Target.Column = 3 Then Target.Columns.ColumnWidth = 10 Else Columns(3).ColumnWidth = 8 End If If Target.Column = 4 Then Target.Columns.ColumnWidth = 10 Else Columns(4).ColumnWidth = 8 End If End If Cheers |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can an If statement answer an If statement? | Excel Discussion (Misc queries) | |||
How to simplfy If & Sumif Code | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions | |||
If statement and Isblank statement | Excel Worksheet Functions | |||
Help please, IF statement/SUMIF statement | Excel Worksheet Functions |