Grey out a load of cells based on a drop-down choice

sethmeister21

New Member
Joined
Mar 10, 2010
Messages
20
Is there an easy way to grey-out (or deactivate) a load of cells based on another drop-down validation list? i.e. If I select "Microsoft Office" from a drop-down, it will then grey out the next few rows cells beneath it.
 

Some videos you may like

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

bobsan42

Well-known Member
Joined
Jul 14, 2010
Messages
1,343
The drop down list is a Cell Validation list ?
Conditional Formatting for example based on the value of the validated cell
 

sethmeister21

New Member
Joined
Mar 10, 2010
Messages
20
hi bobsan42, thanks for the reply. I should have mentioned that I want to avoid using Conditional Formatting as it significantly bloats the spreadsheet (Excel 2003) when you start implementing rules. Whilst Conditional Formatting is handy as it allows me to target the exact cells - e.g. deactivate (or grey-out) cells C6 to D400 if a choice is selected from cell validation....it is way too bloaty.
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Can you explain exactly what you want? When you say "Grey out", do you mean color them of Lock them for editing? OR, do you perhaps wish to Hide those rows?? How many choices in your DD? Does each choice deactivate a different range of cells?? This is the detail we need to help you. The VBA code for this is not difficult, but we need the specifics!!
lenze
 

helenks1

New Member
Joined
Jul 26, 2010
Messages
7

ADVERTISEMENT

I have a similar question and being new I'm not sure if I should post it here or start a new thread. Sorry if I am in the wrong place.

I want to change the color of words in certain cells (or sometimes all the cells) in a row depending on the value entered in a particular cell.
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
I have a similar question and being new I'm not sure if I should post it here or start a new thread. Sorry if I am in the wrong place.

I want to change the color of words in certain cells (or sometimes all the cells) in a row depending on the value entered in a particular cell.
You would probably be better off to start your own thread and give exact details!! What Words? What Cells? What version of Excel?? For versions earlier than 2007, you may need code depending on how many different formats you have!!
Good luck
lenze
 

sethmeister21

New Member
Joined
Mar 10, 2010
Messages
20

ADVERTISEMENT

Hi Lenze, thanks. Basically I will have x5 choices on the DD. If for example "FTP" is selected from our DD list then it will "grey out". By "grey out" i mean color the cells grey.... ideally. This will notify the user that they do not need to fill in the section further down our spreadsheet. I do not wish to hide the rows nor lock them for editing. Additionally, if the user chnaged their mind on the DD then the cell area would go white again. That would be cool.

Deactivating (i.e. coloring grey) a specific range of cells would be handy - maybe a Named Range. I know how to name a range of cells but that's it.
 

sethmeister21

New Member
Joined
Mar 10, 2010
Messages
20
@helenks1******** type=text/javascript> vbmenu_register("postmenu_2389739", true); *********> - please start your own thread for a question then Excel gurus can assist you too.!!
 

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$A$1" Then Exit Sub
Cells.Interior.ColorIndex = xlNone
Select Case UCase(Target)
Case "FTP": Range("Range1").Interior.Color Index = 15
Case "XXX": Range("Range2").Interior.ColorIndex = 15
'etc
Case Else:
End Select
End Sub
lenze
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,576
Messages
5,512,139
Members
408,882
Latest member
Clarab9

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top