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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

bobsan42

Well-known Member
Joined
Jul 14, 2010
Messages
1,855
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,452
Messages
5,837,350
Members
430,496
Latest member
Steph_88

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
Top