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.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
 
Upvote 0

Forum statistics

Threads
1,223,226
Messages
6,170,845
Members
452,360
Latest member
abishekjmichael

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