#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Drop Down List

When ising cell validating with a list, I want the color of the cell to also
change per each item on the list assigned to the cell. Also, I want to
incorporate the data into the cell itself so that I do not have source data.
How do I do that?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default Drop Down List

You can use something like below in the code module of the applicable
worksheet to change the interior color of the cell after a selection
is made. I do not believe you can separate the list contents from a
source though. Others may know of a way to accomplish this, but I do
not know of one.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$4" Then
Select Case Target.Text
Case "fred"
Target.Interior.ColorIndex = 36
Case "tom"
Target.Interior.ColorIndex = 40
Case Else
Target.Interior.ColorIndex = xlNone
End Select
End If
End Sub
Christopher Leigh Stout wrote:
When ising cell validating with a list, I want the color of the cell to also
change per each item on the list assigned to the cell. Also, I want to
incorporate the data into the cell itself so that I do not have source data.
How do I do that?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Drop Down List

You can type the items directly into the source dialog box.

Comma delimited like fred,tom,gord


Gord Dibben MS Excel MVP

On Wed, 03 Oct 2007 05:16:37 -0700, JW wrote:

You can use something like below in the code module of the applicable
worksheet to change the interior color of the cell after a selection
is made. I do not believe you can separate the list contents from a
source though. Others may know of a way to accomplish this, but I do
not know of one.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$4" Then
Select Case Target.Text
Case "fred"
Target.Interior.ColorIndex = 36
Case "tom"
Target.Interior.ColorIndex = 40
Case Else
Target.Interior.ColorIndex = xlNone
End Select
End If
End Sub
Christopher Leigh Stout wrote:
When ising cell validating with a list, I want the color of the cell to also
change per each item on the list assigned to the cell. Also, I want to
incorporate the data into the cell itself so that I do not have source data.
How do I do that?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Drop Down List

I have applied the data to the equation. But I want each item on the list to
have its own cell color.

"JW" wrote:

You can use something like below in the code module of the applicable
worksheet to change the interior color of the cell after a selection
is made. I do not believe you can separate the list contents from a
source though. Others may know of a way to accomplish this, but I do
not know of one.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$4" Then
Select Case Target.Text
Case "fred"
Target.Interior.ColorIndex = 36
Case "tom"
Target.Interior.ColorIndex = 40
Case Else
Target.Interior.ColorIndex = xlNone
End Select
End If
End Sub
Christopher Leigh Stout wrote:
When ising cell validating with a list, I want the color of the cell to also
change per each item on the list assigned to the cell. Also, I want to
incorporate the data into the cell itself so that I do not have source data.
How do I do that?



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
Drop down lists that auto create and then filter the next drop down list [email protected] Excel Worksheet Functions 2 September 30th 07 11:53 AM
how do I use one drop-list to modify another drop-lists options? [email protected] Excel Discussion (Misc queries) 3 September 9th 07 05:46 PM
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
how do I link a drop down list entry to a new drop down cell? lmunzen Excel Discussion (Misc queries) 1 August 15th 06 04:59 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 05:37 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"