Hi,
I am having trouble with conditional formatting with VBA.
I have values in A1:A100 with percentages from -100% to 100%. I would like cells in B1:E100 (which have text) to change font color based on the value in column A. Eg B1:E1 font color based on A1, B83:E83 font color based on A83 etc.
I can obviously do this if I only want 4 different font colors but I want to use 7 colors. This is the color scheme I would like.
From -100% to -40% - Red
-40% to -25% - Orange
-25% to -15% - Pink
-15 to 5% - Black
5% to 15% - Lavender
15% to 25% - Blue
25% to 100% - Sea Green
Is there a way I could do this with VBA
I am having trouble with conditional formatting with VBA.
I have values in A1:A100 with percentages from -100% to 100%. I would like cells in B1:E100 (which have text) to change font color based on the value in column A. Eg B1:E1 font color based on A1, B83:E83 font color based on A83 etc.
I can obviously do this if I only want 4 different font colors but I want to use 7 colors. This is the color scheme I would like.
From -100% to -40% - Red
-40% to -25% - Orange
-25% to -15% - Pink
-15 to 5% - Black
5% to 15% - Lavender
15% to 25% - Blue
25% to 100% - Sea Green
Is there a way I could do this with VBA