Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default HIghlight cells

right click on the sheet tab and select View Code

At the top of the module,
in the left dropdown select Worksheet and in the right dropdown select Change

Make the resulting procedure look like this:

Private Sub Worksheet_Change(ByVal Target As Range)
if target.count 1 then exit sub
if target.column = 1 then
Range("A,H:J").Interior.colorIndex = xlNone
Target.Range("A1,H1:J1").Interior.ColorIndex = 36
end if
End Sub

It is unclear when you want it to loose its highlighting. Not that this can
possibly clear the undo history.

--
Regards,
Tom Ogilvy


"Jim" wrote:

I have an excell spreadsheet, where I enter numbers in colum A and B. In col
H, I, and J are totals, subtotals, etc. My question is, if I enter a
number in Col A row 18, How can I get Row 18 Col H, I and J to be highlighted.

Row Col A Col B Col H Col I

18 8 8 256 I would like Col H and I
to be highlighted.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to highlight more related cells if cell highlight Jon Excel Discussion (Misc queries) 5 December 21st 08 01:06 PM
How to highlight cells... Mare Excel Discussion (Misc queries) 3 January 28th 06 01:09 PM
Highlight Cells Andrew Excel Discussion (Misc queries) 7 September 26th 05 08:50 PM
Highlight cells with ctrl-click but only un-highlight one cell hagan Excel Discussion (Misc queries) 5 May 27th 05 06:45 PM
Highlight all cells, except top row? Reedi Excel Programming 1 October 3rd 03 10:03 PM


All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"