Select currency from drop down, all cells in sheet change to that currency symbol

davejago

Board Regular
Joined
Apr 29, 2005
Messages
133
I have a drop down menu in A1 e.g. Euro, $, GBP etc. I'd like for values in B1:B100 change to the appropriate currency symbol based on what the user chooses from this dropdown. How is this possible? I am not good with macros :-(

(I have the actual exchange rate conversion figured out already).

Thanks for any & all help!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I do not recommend changing source values. I'd say that for safety that you have the source values stored in one area, and have a display area for showing the source in different currencies, and use a conversion formula to calculate the values, dependent on the drop-down choice. You'd need a macro if you want the number formats to use the actual currency symbol, and be real numbers ... on the other hand you could make the results be text versions of the converted values and embed the relevant currency symbol into the text by formulas without any macros needed at all. An example:

Excel Workbook
ABCDEFGH
1Currency Drop-downDrop-down choicesSymbolExchange rateSource data ( dollars )Display area
2GBPEuro0.690059$41.0025.15
3Dollar$1$208.00127.57
4Yen80.6071$25.0015.33
5GBP0.613322$208.00127.57
6$64.0039.25
7$39.0023.92
8$111.0068.08
Sheet23
 
Upvote 0
Hi Davejago

I use the same thing in one of my spreadsheets. In the worksheet code I have this:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then Currency_Calc
End Sub

Then in a module
Sub Currency_Calc()
With ActiveWorkbook.Styles("Currency")
.IncludeNumber = True
.IncludeFont = False
.IncludeAlignment = False
.IncludeBorder = False
.IncludePatterns = False
.IncludeProtection = False
End With
If UCase([a1]) = "€" Then
ActiveWorkbook.Styles("Currency").NumberFormat = _
"[$€-2]#,##0_ ;[Red]-[$€-2]#,##0"

Else
ActiveWorkbook.Styles("Currency").NumberFormat = _
"[$£-2]#,##0_ ;[Red]-[$£-2]#,##0"
End If
End Sub

So when I change the value of cell A1 to a € it changes all currencys to that symbol with the correct formatting.
You would need to amend the macro to add in Dollar etc etc..

Let me know if you need more help. Jamie
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,705
Members
452,939
Latest member
WCrawford

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