Microsoft Excel
--
Questions
--
Followers
Top Experts
I have a very nice WB that I have been using in the U.S. Â Most recently, I have had the request to use it in Europe. Â Here's what I'm interested in knowing;
1.) Is there a way to create a Macro that when "fired" will look through a WB or specific Worksheets and change the formatting (i.e. currency to another currency SIGN; so e.g. dollars to euros, or pounds or Yen)?
and
2.) For graphics with the need for the same currency sign change, can I use the "Linked to source" choice in the graphic to reflect the change in currency or will I have to do something more creative?
I do not need currency conversion. Â I need currency formatting.
Thank you in advance for sharing any expertise in this area.
B.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Then when you want to change the currency format it can be done in modify styles or throught VBA.
If you step through the example code in the attached workbook it should demostrate what can be done:
Sub test()
ActiveWorkbook.Styles("CurrencyChanges").NumberFormat = "£#,##0.00"
ActiveWorkbook.Styles("CurrencyChanges").NumberFormat = "[$$-409]#,##0.00"
ActiveWorkbook.Styles("CurrencyChanges").NumberFormat = "€#,##0.00"
End Sub
U--Example.xlsm
Thanks for responding. Â Roy, I'll take a look at your approach when you send it tonight. Â In the meantime, Steve, I'll review your links/comments.
Thank you,
B.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
B.
I tested your approach.... interesting use of "Styles"....... How do you automate that so you choose a currency and it populates all Currency cells in a WB? Â
B.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Thank you both for jumping in here. Â I really like the easy conditional formatting idea from Roy because it seems simple and I can have a drop down for the Currency selection and avoid Macros and some complexity. Â I think you would agree Steve, that this might be an easy way to accomplish the objective. Â However, to Steve's point, if this is in a VB Module, then all cells formatted for "currency" would automatically change and I would avoid the Pasting formatting I'll need to do. Â Is that right?
So here is where I am. Â I've tried to work Roy's conditional formatting idea and I'm missing something in his directions. Â I've attached my current "attempt". Â Can you guys look at this and see what I'm doing wrong? Â I've created a List in E1, and tried to set up 3 Conditional Formatted styles. Â Copied each to the Test Cells in 1 and 2. Â And I'm missing something basic.
Thank you, again,
B.
Here;s your workbook set up, sorry my example didn't upload.
Either allowing the user to change the currency with styles or with conditional formatting.
Styles are OK if there are users of many different currencies (or you cannot predict the format requirements of the user).
Conditional formatting is good if thare are not too many known currencies (max 5 imo) as users find it simpler.
All down to preferences and what is being done.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Roy, what did you do to my WS to make it work? Â I just need to know as I now transfer the knowledge to my production WB.
Thank you both.
B.
Then added the Conditional Formatting formulas.
I'll do a more comprehensive instruction when I gat time this weekend, but post back with specific questions
I use this in a large accounts workbook with no problems.
For embedded graphics within the WB, can I "link data to source" select and will it incorporate the new selection of currency in the graphic?
B.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
This Conditional Formatting solution works great and is simple and elegant. Â Thank you both for helping me out with this. Â The last question has to do with graphics that are embedded in the Workbook. Â The currency for those graphics typically are changed by accessing the formatting in the graphic and then changing currency. Â What I was wondering is, there is an option to "link to source" the data in particular charts and graphs. Â If I do that, will the formatting automatically change?
I know this question is above and beyond the question you have already answered so I'm going to close out the question and hopefully, if you already know the answer, you may simply post an additional comment.
Great work again.... and thanks!
B.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Microsoft Excel
--
Questions
--
Followers
Top Experts
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.