+ Reply to Thread
Results 1 to 4 of 4

Changing the symbol for all currency formatted values in a spreadsheet - how?

  1. #1
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Changing the symbol for all currency formatted values in a spreadsheet - how?

    I've just stumbled upon this thread as I attempt to solve a similar problem.

    Is there a way of identifying just those cells that are already formatted as currency (of whatever symbol) and then apply a new symbol or preferably a three letter international currency code? I have coded something using ranges but as the currency cells are dotted around the sheet it's impractical to code in every cell reference. I was looking for something that looked for cells already formatted as currency then changed the symbol or abbreviation with the one from a selection list that the user can select. That way it would leave any non-currency formatted cells untouched. I have applied the code to cell ranges but in the sheets I am working with there are cells that aren't easily referenced in a range. I tried doing it in a real sheet and the coding too me longer than manually changing the formats. The way I coded it feels wrong to me but then I am very new to this

    I think the attached should illustrate what I'm trying to achieve. The test would be once the code is in place, I could add a number, format it as currency and then make a different currency selection in cell A1 that would change all currency cells including the new one, to the chosen currency.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Changing the symbol for all currency formatted values in a spreadsheet - how?

    A very good question! Rather than having a macro crawl through a worksheet finding and fixing NumberFormats, assign a unique Style to the cells of a particular category. Then the macro would edit the Style and all the cells would follow suit.
    Gary's Student

  3. #3
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Changing the symbol for all currency formatted values in a spreadsheet - how?

    Thanks for your prompt reply. If it's not a daft question, how would I do that? (create and apply a style)? Would that mean I would have to manually identify all currency formats in the sheet? Once the style is created (I'll have a play now) what code would I use to change it so that I have the same type of currency sector box on the sheet?

    Thanks

    J
    Last edited by Jason66; 10-18-2013 at 10:57 AM.

  4. #4
    Registered User
    Join Date
    10-15-2013
    Location
    UK
    MS-Off Ver
    2010
    Posts
    5

    Re: Changing the symbol for all currency formatted values in a spreadsheet - how?

    Or are you suggesting that I create a set of styles
    GBP Style
    USD Style
    EUR Style

    etc and then have some sort of picker to select the appropriate style that would then change all the cells where the currency style applies?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Currency conversion insert currency symbol
    By siobeh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2013, 05:50 AM
  2. Excel 2007 : Currency symbol
    By nlm in forum Excel General
    Replies: 7
    Last Post: 01-09-2012, 02:29 AM
  3. [SOLVED] changing cell values with text and currency
    By Leah.girl in forum Excel General
    Replies: 1
    Last Post: 04-25-2006, 08:40 AM
  4. [SOLVED] Euro symbol not appearing when formatted to do so
    By liz in forum Excel General
    Replies: 7
    Last Post: 09-12-2005, 06:05 AM
  5. [SOLVED] Values being formatted differently when opening spreadsheet using ado.net
    By Joe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1