+ Reply to Thread
Results 1 to 2 of 2

Currency Format, written in US run in Shanghai

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    159

    Currency Format, written in US run in Shanghai

    Hi All.

    I have an access db that creates / populates excel and then formats the report. I have currency that is in USD so I format it as ...
    Please Login or Register  to view this content.
    when I run in the US, I get what I expect "$100,000", but when this application is run in Shanghai, they get...

    Capture.JPG

    and of course, the actual values are the same if run in US of Shanghai.

    How so I get it to show USD when run from Shanghai?

    Thanks
    Steve
    Harrisburg, PA

  2. #2
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    159

    Re: Currency Format, written in US run in Shanghai

    SOLVED!!! It took a couple hours searching and piecing stuff together... This is the solution: In excel, when you format a cell currency, In my case on my computer $, it really is not dollars - Assuming that you choose the first selection below the "NONE" in the dropdown box...

    Capture.JPG

    vba = Selection.NumberFormat = "$#,##0.00"

    The first selection below "NONE" is the regional setting for the currency. So, if I run VBA on my computer in the US and choose "$" (1st selection below the NONE), I will see USD. But, if my VBA runs on a computer in Shanghai, it will set the symbol to their local currency, not $. So, to get the VBA to format the cell properly, I must choose (see below)

    Capture2.JPG

    recording a macro, this will be:
    Selection.NumberFormat = "[$$-409]#,##0.00"

    Thanks!
    Steve
    Harrisburg, PA

+ 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. Format a specific cell to be written only in English
    By kolovel in forum Excel General
    Replies: 0
    Last Post: 02-18-2010, 12:08 PM
  2. Data in Cross-Tab format: needs to be written in Table Format
    By runyan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2005, 03:05 AM
  3. Change General Format to Currency Format:figures together
    By ScottO in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 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