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.
 

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.
The drop down list is a Cell Validation list ?
Conditional Formatting for example based on the value of the validated cell
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
@helenks1******** type=text/javascript> vbmenu_register("postmenu_2389739", true); *********> - please start your own thread for a question then Excel gurus can assist you too.!!
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top