Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / May 2007

Tip: Looking for answers? Try searching our database.

highlighted cell color

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kdadman - 23 May 2007 19:09 GMT
In Excel 2007 when I click and highlight a croup of cells, the background
color is "annoying". How can I change it so whenever I select a group of
cells they are highlighted in a color I would prefer.

I know I can change the background of cells, I just want to change the color
that they turn whenever any cells in the workbook are highlighted.
Gary''s Student - 24 May 2007 16:50 GMT
Try this little event macro:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = xlNone
Target.Interior.ColorIndex = 6
End Sub

Signature

Gary''s Student - gsnu200724

> In Excel 2007 when I click and highlight a croup of cells, the background
> color is "annoying". How can I change it so whenever I select a group of
> cells they are highlighted in a color I would prefer.
>
> I know I can change the background of cells, I just want to change the color
> that they turn whenever any cells in the workbook are highlighted.
kdadman - 24 May 2007 17:16 GMT
Thanks Gary, can you give me step by step how to use this macro, I can't seem
to get it to work.

> Try this little event macro:
>
[quoted text clipped - 9 lines]
> > I know I can change the background of cells, I just want to change the color
> > that they turn whenever any cells in the workbook are highlighted.
Gord Dibben - 24 May 2007 18:14 GMT
It is event code, not a macro.

Right-click on the sheet tab and "View Code".

Copy/paste the code into that sheet module.

Any cell or cells selection will cause the cell(s) to become yellow.

Just a note:   if you have previously colored cells with a background color,
this code will wipe out that background.

Gord Dibben  MS Excel MVP

>Thanks Gary, can you give me step by step how to use this macro, I can't seem
>to get it to work.
[quoted text clipped - 12 lines]
>> > I know I can change the background of cells, I just want to change the color
>> > that they turn whenever any cells in the workbook are highlighted.
Gord Dibben - 24 May 2007 18:38 GMT
If the wiping out part is not desireable I would suggest you use Chip Pearson's
Rowliner Add-in which preserves original formatting whilst coloring the
activecell.

http://www.cpearson.com/excel/RowLiner.htm

Gord

>It is event code, not a macro.
>
[quoted text clipped - 25 lines]
>>> > I know I can change the background of cells, I just want to change the color
>>> > that they turn whenever any cells in the workbook are highlighted.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.