Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code not working within hidden column range
Using vs 2007, how can this be modified so that it will colour hidden
columns within the range? If Target = "F" Then With Target.Offset(0, -ColNumber + 1).Resize(1, ColNumber + 15).Interior .ColorIndex = 5 .Pattern = xlSolid End With End If Rob |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Code not working within hidden column range
Would this help?
If Target = "F" Then With Target.Offset(0, -ColNumber + 1).Resize(1, ColNumber + 15).Select For Each cell In Selection If cell.Columns.Hidden Then cell.Columns.EntireColumn.Interior.ColorIndex = 5 End If Next cell End With End If |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
code failing in hidden rows | Excel Discussion (Misc queries) | |||
VB Code Is Not Working | Excel Discussion (Misc queries) | |||
Formula or Code to keep Hidden Rows Hidden | Excel Worksheet Functions | |||
Unhiding All hidden Worksheets with a Macro/VBA Code | Excel Discussion (Misc queries) | |||
Code not working and can't see why | Excel Discussion (Misc queries) |