Change currency format of all currency cells in a workbook based on a dropdown/input

L

Legacy 393636

Guest
Hi All,

I've been struggling with this for a while and it would be amazing if I could solve it! Word of warning, My VBA knowledge is limited
:(.

My Goal: To have a cell where you enter (or select from a dropdown) a currency (USD,EUR,GBP etc.) that then changes all currency cells in a workbook to that currency automatically.

I've searched the forum for an answer and I posted in the closest two threads that I've found to what I'm looking for (see below), but still no luck:
*https://www.mrexcel.com/forum/excel...throughout-workbook-based-dropdown-value.html
*https://www.mrexcel.com/forum/excel-questions/973815-replace-formats-across-all-sheets-workbook.html

Currently I have found the below method to change cells (A15:C15) to a particular currency format based on the input to 'C12':

Code:
Private Sub Worksheet_Change(ByVal Target As Range)[INDENT]If Intersect(Target, Me.Range("C12")) Is Nothing Then Exit Sub[/INDENT]
[INDENT]On Error GoTo endit[/INDENT]
[INDENT=2]Application.EnableEvents = False[/INDENT]
[INDENT]With Me.Range("A15:C15")[/INDENT]
[INDENT]Select Case Target.Value[/INDENT]
[INDENT=2]Case "USD"[/INDENT]
[INDENT=3].NumberFormat = "[$$-en-US]* #,##0.00;[Red]-([$$-en-US]* #,##0.00);"[/INDENT]
[INDENT=2]Case "GBP"[/INDENT]
[INDENT=3].NumberFormat = "[$£-en-GB]* #,##0.00;[Red]-([$£-en-GB]* #,##0.00);"[/INDENT]
[INDENT=2]Case "EUR"[/INDENT]
[INDENT=3].NumberFormat = "[$€-x-euro2] * #,##0.00;[Red]-([$€-x-euro2] * #,##0.00);"[/INDENT]
[INDENT]End Select[/INDENT]
End With
endit:[INDENT]Application.EnableEvents = True[/INDENT]
End Sub


I hope that this is would work now if I found a way to replace A15:C15 with V<acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-top-style: initial; border-right-style: initial; border-bottom-style: dotted; border-left-style: initial; border-top-color: initial; border-right-color: initial; border-bottom-color: rgb(0, 0, 0); border-left-color: initial; border-image: initial; cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">BA</acronym> code that would allow me to select all cells in the workbook if they are currency/accounting formatted.


Cheers!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
changing the currency display won't convert the values so $1US would be naff if you make it £1GBP. work with a base currency you are familiar with, have a set of standard differences, then you can consider triggering those specifically
 
Upvote 0

Forum statistics

Threads
1,215,857
Messages
6,127,371
Members
449,381
Latest member
Aircuart

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