Moving Cell Color

Daver53

New Member
Joined
Oct 31, 2011
Messages
3
Ok I'm very new to Excels functions. I am making a time sheet for Employees. In Column D I have a drop down Menu that they can select there type of charge from. There is 8 to select from. They each come up with a designated color.

What I would like is, in Column F they total there hours by that charge ID. I would like that cell (F) to match the color of what they selected in column (D).

Could anyone walk me through this?

Thanks in advance for any help.
 

Some videos you may like

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Puertorekinsam

Active Member
Joined
Oct 8, 2005
Messages
287
Copy this code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 6 Then
Cells(Range(Target.Address).Row, 8).Interior.Color = Target.Interior.Color
End If
End Sub

in excel on the page you are using press alt+ f11

paste
 

Watch MrExcel Video

Forum statistics

Threads
1,122,481
Messages
5,596,393
Members
414,063
Latest member
N_Bates

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
Top