You don't need code. You can use Data Validation.
- Write your list of currencies in some cells, let's say Sheet2!A1:A4 contains USD, GBP, EUR and CHF.
If you have your list on a different sheet to the dropdown, you have to use a Named Range. Select Sheet2!A1:A4 then do Formula tab > Defined Names group > Define Name. Enter "Cur" for the Name, then click OK.
- Select the cell where you want the dropdown to appear, let's say Sheet1!D5.
Do: Data tab > Data Tools group > Data Validation. Set the Allow field to List, and enter =Cur in the Source field. OK.
You should now have your dropdown containing the currencies in your list.
Now you need to set up your data for plotting. To do this you should set up your data so you have one column that <could> be plotted for each currency. So let's say you have your X values in column J, Y values for USD in column K, Y values for GBP in column
L, Y values for EUR in column M and Y values for CHF in column N.
Cells J1:N1 should contain your currencies (USD, GBP, EUR and CHF). Now you can use HLOOKUP to return another column for the selected currency. So in cell P1 enter =HLOOKUP($D$5,$K$1:$N1,ROWS(K$1:N1),FALSE)
$D$5 is the cell where the dropdown is. Note the two $ signs.
$K$1:$N1 is the currency columns, down to the current row.
ROWS(K$1:N1) counts the current row number relative to the top of your table range.
FALSE makes it look for an exact match between D5 and the first row of the table (K1:N1).
You can now plot column P against your X values, and your chart will change when you make a selection from the dropdown in D5.
There are many other ways to do things like this, it all depends on what calculations you are doing depending on which selection is made....
Hope that helps.
Cheers
Rich