Highlight a row
-
I found you so helpful last time that i have decided to bug you again i'm afraid. I want to click on a cell and have it automatically highlight the entire row. I have found a couple of codes on the internet that do a similar thing (highlight the row upto the cell your in and column) but basically i just want a code that essentially does Shft + Space for me whenever i click in a cell. if it were to highlight it in yellow then when i click out it goes back to normal that would be ideal. Kind Robert
-
Answer:
Robert Put this in the code for the worksheet you want. It will change the active row to be yellow. Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'highlight active row Static OldRange As Range On Error Resume Next Target.EntireRow.Interior.ColorIndex = 6 OldRange.EntireRow.Interior.ColorIndex = xlColorIndexNone Set OldRange = Target End Sub
Miningco.com Visit the source
Related Q & A:
- How to find out if it is possible to contruct a binary matrix with given row and column sums?Best solution by Mathematics
- Can I estimate the row count of a large mysql table using the disk space?Best solution by Database Administrators
- How to add new row to a databound gridview?Best solution by Stack Overflow
- How to get the column value when a row is selected in wpf listview?Best solution by Stack Overflow
- How to copy each row from a worksheet into new workbooks?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.