M
MikeF
Would like to do some simple formatting on only rows in one specific subtotal
level.
The code should effictively find all instances where the word "total" occurs
in b6.b150 , select the row, bold the contents, and apply some borders.
The following code works, but only on the first occurence.
Is there any way to select all of, and only those rows that contain "total"?
ActiveSheet.Outline.ShowLevels RowLevels:=3
Range("b6.b150").Select
Cells.Find(What:=Right("Total", 5)).Select
Selection.EntireRow.Select
With Selection
.Font.Bold = True
.Borders(xlEdgeTop).Weight = xlMedium
.Borders(xlEdgeBottom).LineStyle = xlDouble
.Borders(xlEdgeBottom).Weight = xlThick
End With
level.
The code should effictively find all instances where the word "total" occurs
in b6.b150 , select the row, bold the contents, and apply some borders.
The following code works, but only on the first occurence.
Is there any way to select all of, and only those rows that contain "total"?
ActiveSheet.Outline.ShowLevels RowLevels:=3
Range("b6.b150").Select
Cells.Find(What:=Right("Total", 5)).Select
Selection.EntireRow.Select
With Selection
.Font.Bold = True
.Borders(xlEdgeTop).Weight = xlMedium
.Borders(xlEdgeBottom).LineStyle = xlDouble
.Borders(xlEdgeBottom).Weight = xlThick
End With