change colours or propeties on all items

k0023382

New Member
Joined
Feb 25, 2010
Messages
45
Hi there,
I have been presented with some 20 plus templates, each workbook/template contains between 5 and 20 sheets, depending on the sheet, they make have extra items, charts, different shapes and maybe some tables.

I have been told to change the generic colours to keep up with the new marketing material.

To amend fonts and backgrounds it is easy just for cells.

Sub Macro1()
With Application.FindFormat.Interior
.PatternColorIndex = xlAutomatic
.Color = RGB(128, 0, 128)
End With
With Application.ReplaceFormat.Interior
.PatternColorIndex = xlAutomatic
.Color = RGB(128, 100, 128)
End With
Cells.Replace What:="", Replacement:="", LookAt:=xlPart, ReplaceFormat:=True
End Sub

Now the tricky part, by using VBA a need to find and replace one colour for another by checking all the items on each template.
I wonder if there is a generic way to go through ALL THE ITEMS, and replace (128, 0, 128) with (128, 100, 128).
Many thanks

 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top