Color tintand shade

larrygreg

New Member
Joined
Dec 27, 2011
Messages
46
Trying to change the colors of a range of cells. I am using the macro recorder to generate the code.

When I record the macro, I chose the color blue Accent 1 Darker 50. However when I choose that color and it looks good while I am recording it, the color the macro uses is blue accent 1 darker 25.

With Selection.Font
.ThemeColor = xlThemeColorAccent1
.TintAndShade = -0.499984740745262

End With

Very frustrating. I dont know what I am doing wrong
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello,

are you sure you are checking the correct cell, it works fine for me. I change it to a completely different colour, then run your code, and it colours is with Darker 50%.
 
Upvote 0

Forum statistics

Threads
1,216,449
Messages
6,130,711
Members
449,588
Latest member
ahmed Adel

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