Excel color retrive with drop down list

Antrew80

New Member
Joined
Sep 13, 2013
Messages
6
Hi i created an excel file with Cyprus League teams. I made a drop down list with these teams in a sheet named teams. i colored each team with its official color. i have a separate sheet named rounds. when i select two teams for example it does not come with the color as created.any idea of how to retrieve color also?


thanks a lot
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
This depends where/how you're storing the color related to each team. For example, suppose you have a static list of team names somewhere (from whence the dropdown list is generated). These cells could contain the team color. Thus, when the user selects the team, a lookup checks for the team name in the static list and a VBA code uses the color from the static list cell. .cells(x,y).interior.color
 
Upvote 0
Excel formulas/functions work on data, and color is not data - it is a formatting/cosmetic appearance applied so we can see things better.

The DD will show those names because they are data, it will not pull in the color of those cells because that is formatting/cosmetics, not data
 
Upvote 0
This depends where/how you're storing the color related to each team. For example, suppose you have a static list of team names somewhere (from whence the dropdown list is generated). These cells could contain the team color. Thus, when the user selects the team, a lookup checks for the team name in the static list and a VBA code uses the color from the static list cell. .cells(x,y).interior.color

Hi Roderick,
thanks for your reply.
yes i have a sheet named teams where is the dropdown list and two different sheets for regular season and one for play off.
where i should put the code that mentioned above?

if you want i can upload the excel

thanks for your help.
 
Upvote 0
Hello, how are you producing the dropdown list? Are you referencing a range of cells or did you type the names in manually?

My plan was that you would use a range of cells, each cell with the team name is colored accordingly. Then you'd need a macro to match the dropdown selections to the list and utilize the cell color from the match.
 
Upvote 0
Hi,
yes it is like you described above. each cell with the team name is colored accordingly.
i have to make one macro for each team or one macro for the drop down list?

thanks
 
Upvote 0
One macro. More than likely we'll use the Worksheet_Change macro.

Where do you want the colors to show? What sheet(s) and cells?
 
Upvote 0
Sheet 1 (named FootBall) Column A (A1 - A240) and column D (D1 - D240)
Sheet 2 (named Play Off) Column A (A1 - A100) and column D (D1 - D100)
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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