Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 313
Default shading a cell based on another cell with not value

I'm making an application where the user will tab through cells. Each cell
has a description of that cell beside it in a different cell. How can I
shade the cell with the description when the user tabs into the cell it is
describing, and then have it un-shade when they tab out of it?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default shading a cell based on another cell with not value

hi,
not sure exactly but try something like this....

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = 0
ActiveCell.Offset(0, 1).Interior.ColorIndex = 6 'yellow
End Sub

if you are unsure, look up the offset property in vb help.
colorindex...0 = white, 1 = black. play with the numbers until you get your
color.

regards
FSt1

"Tony" wrote:

I'm making an application where the user will tab through cells. Each cell
has a description of that cell beside it in a different cell. How can I
shade the cell with the description when the user tabs into the cell it is
describing, and then have it un-shade when they tab out of it?

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
Fill a cell based on a condition being met confused teacher Excel Worksheet Functions 3 July 5th 06 08:29 AM
Referencing a cell based on the value in another cell septillion Excel Discussion (Misc queries) 3 June 30th 06 03:03 AM
HELP| populate cell with particular value based on multiple condit doon Excel Worksheet Functions 7 February 13th 06 11:26 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Returning a Value to a Cell Based on a Range of Uncertain Size amc422 Excel Worksheet Functions 7 November 14th 04 03:03 PM


All times are GMT +1. The time now is 12:40 PM.

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

About Us

"It's about Microsoft Excel"