ianb
Member
Hi,
Does nay one have a program that will change background colours.
e.g.
1. If background colour is light grey then change to dark grey
2. if background colour is brown then change to indigo.
I need various background colours to change on a various work sheets.
Would look simlar to this previous program that is for charts.
Dim ws As Worksheet
Dim ch As ChartObject
For Each ws In Worksheets
For Each ch In ws.ChartObjects
ch.Activate
ActiveChart.ClearToMatchStyle
ActiveChart.ChartStyle = 18
ActiveChart.ClearToMatchStyle
Next ch
Next ws
End Sub
Many Thanks.
Does nay one have a program that will change background colours.
e.g.
1. If background colour is light grey then change to dark grey
2. if background colour is brown then change to indigo.
I need various background colours to change on a various work sheets.
Would look simlar to this previous program that is for charts.
Dim ws As Worksheet
Dim ch As ChartObject
For Each ws In Worksheets
For Each ch In ws.ChartObjects
ch.Activate
ActiveChart.ClearToMatchStyle
ActiveChart.ChartStyle = 18
ActiveChart.ClearToMatchStyle
Next ch
Next ws
End Sub
Many Thanks.