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

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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