kmmsquared
New Member
- Joined
- Jan 7, 2011
- Messages
- 33
Hello,
I am new to VBA, and I am looking to select a column and format the cells based on their back fill color. I have three conditions.
The information regarding the first color is below, and the contents of the cell should be 1 if this condition is true in column D:
The information regarding the second color is below, and the contents of the cell should be 2 if this condition is true in column D:
Finally, the information regarding the third color is below, and the contents of the cell should be 3 if this condition is true in column D
Any help would be greatly appreciated!
I am new to VBA, and I am looking to select a column and format the cells based on their back fill color. I have three conditions.
The information regarding the first color is below, and the contents of the cell should be 1 if this condition is true in column D:
Code:
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent4
.TintAndShade = 0.799981688894314
The information regarding the second color is below, and the contents of the cell should be 2 if this condition is true in column D:
Code:
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent5
.TintAndShade = 0.599963377788629
Finally, the information regarding the third color is below, and the contents of the cell should be 3 if this condition is true in column D
Code:
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.599963377788629
Any help would be greatly appreciated!