Change Color Of Row When Cell Is Selected

May 22, 2007

I have a spreadsheet containing many rows of data that I need people to review. After reviewing the data in the column, a reviewer must enter comments in the right-most column and then hit the Enter key to move to the next row down.

What I'd like to happen -- As a reviewer selects the cell where they need to enter data, I want the entire row to highlight. I can use conditional formatting to change the color of the row once data is entered, but I want to change the color of the row when a specific cell is selected. I've attached a sample spreadsheet.

View 4 Replies


ADVERTISEMENT

Vba To Change Color Of Selected Cell

Feb 5, 2008

As an example:

Cells C7:F7 are currently shaded light green. Cells G7:L7 are shaded light blue. M7 is shaded dark blue. N7:Q7 are shaded light yellow and R7:T7 are shaded light gray.

When any cell in that range (C7:T7) is clicked (selected), I want the cell color to change to it's normal color; like light yellow to yellow, light blue to blue, dark blue to blue, light green to green and finally light gray to gray.

These cells represent headings for a database. When a heading is selected, the database will sort by that column and the header will change colors. I can do the sort code.

If another header is chosen, the previous selection will need to revert back to it's lighter color and the new selection will change as above... so only ONE cell will be changed from it's "normal state" color at a time. This will serve as an indicator as to which column is being used for the sort. To the user, it will have the appearance of switching on and off.

If any other cell on the sheet is selected, then this should not trigger an event change.

View 9 Replies View Related

Change Color Cells In Range Selected?

Aug 28, 2013

[URL] and how I could modify the conditional formatting/vba to return the same effect but for a selected range, not just a cell?

View 2 Replies View Related

Add A Textbox At The Current Position (selected Cell) With A Set Size, Fill Color, And Border Color

Nov 2, 2008

I'm trying to add a textbox at the current position (selected cell) with a set size, fill color, and border color. I found this: http://msdn.microsoft.com/en-us/libr...8(VS.80).aspx:

View 2 Replies View Related

Auto Calculate Color Function On Cell Color Change

Feb 15, 2010

I would like to be able to change the color of a cell in V4:AB31 and have the formula in AM10:AM13 automatically calculate the new result. As it is now the user has to press Ctrl ALT f9 for the formula to recalculate.

View 7 Replies View Related

Change Font Color Based On Adjacent Cell Color

Apr 18, 2008

I have two columns. The first one (A) contains cells that have different Fill colors. The second column (B) contains text adjacent to the colored cells. I am trying to change the color of the text in the second column (B) to the corresponding color in the adjacent cell in the first column (A). I don't think conditional formating works well in this situation. I believe the solution would be some sort of macro.

View 3 Replies View Related

Change Font Color If Cell Color Become Yellow (6)

Jul 9, 2009

I have font color white in blank cells in column E and I (from row 5 to row 245) so the visitors will not see the text. If any of these cells become yellow (color code is 6), the font color will become black so visitors can see the text alot far better than white. I've tried this code myself after this post but nothing happen

View 4 Replies View Related

Change Text Color Based On Cell Color

Oct 17, 2006

I have various row cells in column (F) filled with the color Green. And corresponding text in Column G. How can I change the text of that particular row to white.

i.e.: if any cell in column F is Green, change the text color of that row in Column G to white?

View 5 Replies View Related

Worksheet Cell Automatically Highlights In Different Color When It Is Selected

Mar 6, 2013

I occasionally give presentations with Excel and would like to make it easier for the audience to see a particular cell when I move to it. The cursor can be tiny, and some people have a hard time seeing the cursor, so I use the keyboard to navigate to the cells I talk about. Yet, the cell, which then has a border around it, still can be hard to see.

Is there a way in Excel to have a cell that is highlighted, that is I move to a cell with the keyboard, so that it pops out in a different font color or background or format, when I move to it, and it automatically reverts to its usual format and color when I move away from it?

View 1 Replies View Related

Change The Cell Color On Drop Down Change

Jun 3, 2008

I have a drop down sub pasted to worksheet:

Private Sub ComboBox1_Change()
ComboBox1.List = Array(100, 200, 300, 400)
If Range("I11").Value < Range("N11").Value Then
If Sheets("Profile").Range("K18").Value < ComboBox1.Value Then
Range("I11").Interior.ColorIndex = 2
Else
Range("I11").Interior.ColorIndex = 3
End If
End If

End Sub

I want it to change the cell color on drop down change. How can I modify things to have the change in drop down selection?

View 9 Replies View Related

Change Background Of A Row When Cell Is Selected.

Apr 18, 2009

My question is relevant to the one in this thread: ttp://www.excelforum.com/excel-prog...ckgrounds.html. Instead of one cell, as in the above thread I want it for a complete row.

View 4 Replies View Related

Change The BG Colour Of A Cell When Selected

Nov 3, 2008

I have 5 cells in the same row (C20:G20)
When i click on one of them i want it to either change the background of the selected cell or the background of the cell below it.

EG if i click on C20 either C20 or D20 the highlight black and change the text colour to white, or just change the background to grey.

i thought it might be something like Target.Offset(1, 0).BGColor = 6

i tried this>

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells = C20 Then
Target.Offset(1, 0).BGColor = 6
End If
End Sub

View 9 Replies View Related

Change A Macro To From And Absolute Cell Reference To Selected Cell.

Feb 5, 2010

i am currently using the macro below to import text files into a spreadsheet. Currently, it begins the import in cell A1 which is what I recorded it to do. how do I change the code to begin the import on the active cell?

View 2 Replies View Related

Color Change In A Cell

Nov 24, 2009

What formula do i use if i want the text in cell A1 to change to red if any entry is made in cell B1.

View 2 Replies View Related

Change The Color Of Cell

Dec 14, 2009

I am having some color problems. From A2:AB2000 I have different fill colors for cells all over the place. The only color I need is the color purple which I believe is the color “39”.

So basically all cells except the cells with the color purple change to white from A2:AB2000. I would like to add this code to the macro I have already created.

View 2 Replies View Related

Change Row Color On Cell Value?

Nov 22, 2012

I'm trying to put together a script which changes the color of the row in columns A:AE if any cell in the Range B7:B400 has the value of 'No'. If it has the value of 'Yes' I would like it to Exit Sub.

I've put together the code below to try an create this function, but I'm running into a few problems.

Code:
If Intersect(Target, Range("B7:B400")) Is Nothing Then Exit Sub
If Selection.Cells.Count > 1 Then Exit Sub
If Target "No" Then[code]....

When the value of any cell in Range B7:B400 is 'Yes' the row changes to grey, if I enter 'No' it removes all cell shading from the row, and I'm not very clear on what changes I need to make.

View 2 Replies View Related

Cell Color Change If Value Changes

Apr 4, 2007

I've got some spread sheets that I send out. People fill them out and send them back to me. The only problem is that I dont know which cells they've changed and which cells they've left. Is thier a way to tell VB to change the color of a cell if the value has changed

View 9 Replies View Related

Change The Color Of The Cell

Jul 24, 2007

I have to check a cell to see if ti has a date in it, if so , then i have to check the current date to another cell, if the current date is greater then that cell i want to change the color of the cell

View 9 Replies View Related

Change The Cell Color

Apr 28, 2008

When I click on a button I would like an option to cancel a row range of cells by turning the writing red with a cross through it.

So if I wanted to cancel a certain row of data I would click on a button, enter the range of cells to cancel and then this would turn all of the writing in the cells to red colour with a strike through the words.

View 9 Replies View Related

IF And Change The Color Of Cell

Jan 7, 2010

i need to add this in a macro that i previously created
here is what i need, i hope its clear for everyone to understand

I want to be able to change a color of a row to purple if a cell is greater than 5 days
so basically what i need is something like this

IF BQ1 has the data "APPROVED" and data in BP1 is 01/04/10 and BN1 is blank and if BN1 is blank after 5 days of BP1 then the color of this row changes to purple

View 9 Replies View Related

Change Row Color If Cell Value Is

Mar 23, 2007

I want to change the row color after the value in one of the cells equals a certain value. What is the best/easiest way to accomplish this?

View 9 Replies View Related

Copy Selected Cells, Then Change To Absolute Cell Reference

Oct 28, 2009

I need a macro to do this small task for me. Preferably it should execute when I have selected a cell and press a command button. Here's the way it should work:

Copy the cell I have selected

View 3 Replies View Related

Excel 2007 :: Real Time Formula Change When Cell Selected

Mar 6, 2012

I am an Excel 2007 user.

I have a formula (below) that looks only at records based on specific filtering criteria or conditions; one of those conditions is the month of the year: ('Data Dump'!$Q:$Q,Summary!$A$26). This portion of the formula would change as a month is selected.

Opposed to having to rewrite the formula every time that I want to view a specific month, I want to automate the formula to change the first condition when a user selects a month from Column A. This would be a real time, automatic refiltering and recalculation as the user selects different months from Column A

Current Formula that filters and shows only January records.
=COUNTIFS('Data Dump'!$Q:$Q,Summary!$A$26,'Data Dump'!$D:$D,Summary!$A$2,'Data Dump'!$M:$M,Summary!C$2)

Column A (January is in cell A26)
January
February
March
April
May
June
July
August
September
October
November
December

View 2 Replies View Related

Change Cell Color Based On Value

Jul 20, 2009

I'm putting the sum of 3 cells in a 4th cell(D2). If the sum is greater, I would like the sum to be the color green. If the sum is less, I would like the sum to be the color red. Is this possible?

(D2) has change value, I want to compare the new value against the existing one.

View 9 Replies View Related

Change Default Cell Color?

Mar 10, 2014

I would like to change the default color of any excel sheet I use to grey from the standard white and I am struggling to find out how this is achieved.

In other words, I am trying to have all cells in the sheets I work with appear grey on my screen by default. A coworker of mine used to work in banking and she has grey cells but does not know how she changed them.

View 1 Replies View Related

Change Color Of A Cell By Just Clicking On It?

Aug 25, 2009

I'm trying to do. I have 2 columns, both have empty cells with borders. I would like to make it so that when the user clicks one of the cells, it turns grey and the one beside it turns white. I set up two macros as follows:

View 3 Replies View Related

How To Change Row Color Based On Value Of 1 Cell

Dec 20, 2011

I'm trying to set up a spreadsheet to track 20 vehicles mileage, and when they are due for an oil change. I have the value of when they are next due in column D, and the actual mileage in column G. I want to have the row for each vehicle turn yellow when they are within 1,000 miles of needing an oil change, and red when they are due/overdue.

View 2 Replies View Related

Change Cell Color On Select

Mar 21, 2012

I ran a quick code to see if this would work. it did at first then stopped.

Code:
Private Sub Worksheet_SelectionChange(ByVal target As Range)
tcol = target.Column
trow = target.Row
If Cells(trow, tcol).Interior.ColorIndex = -4142 Then Cells(trow, tcol).Interior.ColorIndex = 8
If Cells(trow, tcol).Interior.ColorIndex = 8 Then Cells(trow, tcol).Interior.ColorIndex = -4142
MsgBox trow & " " & tcol & " " & Cells(trow, tcol).Interior.ColorIndex
End Sub

In short I am trying to toggle between color/no color when a cell is selected. I got the -4142 from using the MsgBox to determine the value. Should I be approaching this differently?

View 4 Replies View Related

How To Change Tab Color Based On Cell Value

Mar 29, 2012

I have been trying to figure out how to change the color of a specific tab based on information being entered in cell "B9" for each sheet that the tabs represent. If there is information in cell B9 on "tab 1", I want only tab 1 to change a color. If there is no information entered in cell B9 of tab 2, then I want tab 2 to stay with its default color.

There are 34 tabs I want this to happen to, out of just more than 60 total tabs on the worksheet.

View 9 Replies View Related

VBA Code For Cell Color Change

Sep 24, 2013

VBA code to do the following.

In F147 will go a value

Then if the value of F147 is greater than 20 the color of D144 would turn green.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved