![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 48
|
I want every cell of a specific category to have a dropdown list for all the options of the customers. I am using data validation, but how can i implement this with a source list of customers on a different worksheet?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
Instead of referring to cell ranges in Data Validation, use a named range. Select your source range and choose Insert>Name>Define. Enter a name such as List. Now in Data Validation field,enter =List. This will work across sheets
[ This Message was edited by: lenze on 2002-05-23 06:43 ] |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
Highlight the area you need in the list Method1 Click in the Name Box in the top right of the Excel (it should contain a cell reference) Type a name which means something to you e.g. MyList (no spaces) Hit return. Method2 Goto Insert>Names>Define in the top box put a name that means something to you, (as above). Hit OK. Now in the Source box of Data Validation type =MyList this should do it for you
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#4 | |
|
New Member
Join Date: May 2002
Posts: 48
|
Thanks Ian and lenze, very appreciated!
Nathalie Quote:
|
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Jul 2004
Posts: 78
|
I thought i was good on Excel until I tried to get this validation across sheets using a name range. It doesn't work for some reason.
I named my range of cells "Month", then in the Validation area defined it as a List the source being "Month". But when i test it, the drop down just says "Month" i.e. the name of the name-range, not the values within it. Any ideas where I'm going wrong please? This is such an annoying thing to be stuck on! |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Jan 2003
Posts: 615
|
Try using Custom in Validation instead of List and entering
=Month
__________________
Ken WindowsXP64Pro & Excel2003-2007 |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Jul 2004
Posts: 78
|
Strange, I tried custom list, then decided i needed the drop-down for the user to see, changed back to 'List' instead of 'Custom', and it worked. Probably just me having one of those mornings
|
|
|
|
|
|
#8 |
|
New Member
Join Date: Jul 2006
Posts: 2
|
Hello
EL newb here. I am trying to set up a drop down list to use for tracking equipment. I have figured out how to get the dropdown set up with the different values that I need. ie: full - empty ,ect. I would like each value(cell) to have a different background color for easy ID when doing a quik lookthrough,but I can't get the colors to transfer over. The source is on the same page. Thx in advance. Sno |
|
|
|
|
|
#9 |
|
MrExcel MVP
Moderator Join Date: May 2003
Location: Boulder Creek, CA
Posts: 23,704
|
Welcome to the Board!
If you only have 3 conditions, you can use Conditional Formatting. In that cell goto Format-->Conditional Formatting-->Cell Value Is-->Equal to-->YourValue-->Format as desited, then add a condition and repeat. If you have more than three, then you'd need a VBA change event, which can be written pretty quickly. Hope that helps, Smitty
__________________
Smitty Every once in a while, there's a sudden gust of gravity... Microsoft MVP - Excel Mr Excel HTML Maker - Post a shot of your sheet |
|
|
|
|
|
#10 |
|
New Member
Join Date: Jul 2006
Posts: 2
|
Thx PennySaver
The conditional formating worked like a charm. If it is an easything I was wondering if you could explain how to do the vba change event. I have 5 values that I am working with and would like the last 2 to change as well. If it is to indepth then I could live with only being able to change 3. Thx Sno |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|