Hi,
I often use this technique on Chart Sheets.
1. On the Source Data Table sheet for your CHART, turn on the AutoFilter. The AutoFilter is how the chart will be controlled.
2. Select the chart. Tools/Options/Chart - Check
plot visible cells only
3. On a separate sheet, make a list of the unique values from the Source Data Table that will control each chart. You can use the Data/Filter/Advalced filter to filter UNIQUE values (no criteria) to another location. I like to name my lists using Insert/Name/Create - create names in top row.
4. On the Chart, activate the FORMS toolbar and select Combo Box. Place the combobox where you like.
5. Format the Combo Box control. Reference the LIST that you created in the ListFillRange. Create the CellLink reference by selecting the new sheet containing your list, in an empty cell that is NOT adjacent to your list. When the user selects an item from the list, the item index will be in this cell link reference.
6. In a cell adjacent to the cell link reference, enter this lookup formula to get the value that was selected...
[tt]
=INDEX(
the list reference,
the cell link reference,1)
[/tt]
6. Activate your Source Data Table sheet and MACRO RECORD selecting a value from the AutoFilter (one of the values that will be in your list on the other sheet). Turn OFF the recorder.
7. alt+F11 toggles between the workbook and the VB Editor. Locate Module1 that contains the VBA code that you just recorded. Post back your code to get further help.
Skip,
[red]Be Advised![/red] A chicken, who would drag a wagon across the road for 2 cents, is…
POULTRY in motion to PULLET for a PALTRY amount! ![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)