Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Experts:
below code snippet (taken from a macro to alternately shade rows: Courtesy by Chris Bottomley, EE) should be CHANGED to work on rows that have NO BOLD FONT FORMATTING instead of a "IsNumeric" property. Hope this is feasible. Help is much appreciated. Thank you very much in advance. Regards, Andreas Code snippet cut out from a macro to shade rows: For Each rw In Selection.Rows If IsNumeric(ThisWorkbook.Sheets(1).Cells(rw.Row, 1)) Then For Each col In Selection.Columns If bolRed Then ThisWorkbook.Sheets(1).Cells(rw.Row, col.Column).Interior.Color = RGB(239, 211, 210) ThisWorkbook.Sheets(1).Cells(rw.Row, col.Column).Font.Color = vbBlack Else ThisWorkbook.Sheets(1).Cells(rw.Row, col.Column).Interior.Color = RGB(229, 229, 229) ThisWorkbook.Sheets(1).Cells(rw.Row, col.Column).Font.Color = vbBlack End If Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I alternate shading of rows, Excel 2007, no new tabs. | Excel Discussion (Misc queries) | |||
Alternate Row Shading (Visible Rows Only) | Excel Worksheet Functions | |||
Shading alternate "groups" of rows? | Excel Worksheet Functions | |||
shading alternate rows, but losing format when one row is deleted | Excel Discussion (Misc queries) | |||
Alternate Shading | Excel Discussion (Misc queries) |