A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

cell or column highlights when other cell is selected



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2009, 12:54 AM posted to microsoft.public.excel.worksheet.functions
Tropicana
external usenet poster
 
Posts: 1
Default cell or column highlights when other cell is selected

Hi,
I'm using Office 2003 and hoping for an answer.
What I want to do is have either a cell or column highlight when another
cell is chosen.
For example when I select E4 then column J would highlight, or I select E4
and J4 would highlight.
Are either of these possible?

Tropicana
  #2  
Old June 16th, 2009, 02:36 PM posted to microsoft.public.excel.worksheet.functions
Luke M
external usenet poster
 
Posts: 2,672
Default cell or column highlights when other cell is selected

You could do something like this. On sheet you want this to happen, right
click on sheet tab, view code, paste this in. This will highlight column J
when E4 is selected.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$E$4" Then
Range("J:J").Interior.ColorIndex = 6 ' YELLOW
Range("J:J").Interior.Pattern = xlSolid
Else
Range("J:J").Interior.ColorIndex = 0
End If
End Sub
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tropicana" wrote:

Hi,
I'm using Office 2003 and hoping for an answer.
What I want to do is have either a cell or column highlight when another
cell is chosen.
For example when I select E4 then column J would highlight, or I select E4
and J4 would highlight.
Are either of these possible?

Tropicana

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.