Change Color of active cell

Amar Verma

New Member
Joined
Mar 25, 2011
Messages
12
How do i change color of a cell when selected and it goes back to default color when another cell is selected or when i click a command button in my sheet.:confused:
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Select the cells of interest, apply this Conditional Format formula and set a fill colour

=AND(ROW()=CELL("row"),COLUMN()=CELL("col"))

Then right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.ScreenUpdating = True
End Sub
 

Amar Verma

New Member
Joined
Mar 25, 2011
Messages
12
Hello again!
you are my help again. Let me explain a little more. I have a workbook with almost 130 worksheets all linked together. All the worksheets are password protected. The only cells that are unlocked where i want my coworkers to do data entry. What i want is everytime they select a cell it changes to a different color so that just in case they got busy doing something else and when they return they know what cell they were on. I am new to excel and a self learner. The cells they can select are excel's default color. Is it possible to cells change the color when they select them and go back to their default color when other cell is selected or when they click the command .
Thanks in advance.
Amar
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,653
Messages
5,854,963
Members
431,689
Latest member
jacker01

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