+ Reply to Thread
Results 1 to 2 of 2

Problem: Code to remove Spaces re-formats numbers. Why?

  1. #1
    Registered User
    Join Date
    11-04-2020
    Location
    Germany
    MS-Off Ver
    365
    Posts
    68

    Problem: Code to remove Spaces re-formats numbers. Why?

    Hello everyone,

    I am using the following code to remove all spaces within a worksheet.
    HTML Code: 
    This works for the spaces, but for some reason all my numbers in that sheet get multiplied by 1000.

    I thnk this may be some kind of reformatting.

    The rest of the code is the following
    HTML Code: 
    So I am importing a source txt file with a number 3,77E3. This is then, after copying, 3,77E3. But after running the replace-spaces-code this turns into 3,77E6.

    Anybody have an idea as to why and how I can fix this?

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Problem: Code to remove Spaces re-formats numbers. Why?

    1. Some example of such a "txt" file would be useful (false data)
    2. Perhaps, this "kind of thing" may be the result of your system settings "being in conflict" with "excel/vba settings" (made in eu vs. made in usa) ... (?)

+ 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. How to remove leading spaces from numbers
    By welchs101 in forum Excel General
    Replies: 10
    Last Post: 07-18-2020, 05:14 PM
  2. Replies: 1
    Last Post: 05-01-2020, 06:59 PM
  3. [SOLVED] Remove Spaces between Numbers
    By meabrams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2015, 02:41 AM
  4. [SOLVED] Formula to remove spaces between numbers?
    By kellyfirth in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2015, 12:13 PM
  5. [SOLVED] Remove spaces in pasted numbers
    By Jonathan9 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-14-2014, 01:15 PM
  6. [SOLVED] Excel 2007 : Function to remove spaces in telephone numbers
    By benoj2005 in forum Excel General
    Replies: 6
    Last Post: 06-27-2012, 06:16 AM
  7. Replies: 3
    Last Post: 04-05-2012, 01:20 PM

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