Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8804153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:31:50+00:00 2026-06-14T01:31:50+00:00

I am creating an Excel file that helps people to automatically process data. Within

  • 0

I am creating an Excel file that helps people to automatically process data. Within this sheet, there are numbers that have to be parsed (and converted to other units, etc. Simple calculations).

The numbers come in US format which means they look like:

0,000,000.00

In Germany, numbers are displayed like this:

0.000.000,00

In VBA, I actually don’t know, which localized Version of Excel is in use (German or English).

Question:
Is there an easy way to parse the US format numbers into data type Double regardless of the Excel localization, that is used by the user?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T01:31:51+00:00Added an answer on June 14, 2026 at 1:31 am

    Some notes. I did not change locale to test.

    'http://msdn.microsoft.com/en-us/library/office/bb177675(v=office.12).aspx
    Debug.Print Application.International(xlCountryCode) 'Excel locale
    Debug.Print Application.International(xlCountrySetting) 'Windows locale
    sDecimal = Application.International(xlDecimalSeparator)
    sThousand = Application.International(xlThousandsSeparator)
    
    sNumber = "1,000,000.00"
    
    If sThousand <> "," Then
        If sDecimal <> "." Then
            sNumber = Replace(sNumber, ",", "")
            sNumber = Replace(sNumber, ".", sDecimal)
        End If
    End If
    
    Debug.Print sNumber
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating Excel file download using NOPI libraries. I have lot of data
I have a C# program that is creating, writing, and saving an excel file
I have an Excel file that I need to process three times in integration
I am creating a C# app that handles Excel applications. The excel file I
I have a function that takes a url to an Excel file, and then
I am dynamically creating a Excel File that is displayed to the users upon
I have an Excel file that has some Spanish characters (tildes, etc.) that I
I am creating an Excel file dynamically(data coming from database). on calling the URL
Basically my problem is this: I have a CSV excel file with info on
I'm building a console app that moves data into an excel file (using EPPlus

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.