+ Reply to Thread
Results 1 to 2 of 2

VBA - Macro changing number

  1. #1
    Registered User
    Join Date
    02-03-2016
    Location
    Brasil
    MS-Off Ver
    2013
    Posts
    10

    VBA - Macro changing number

    Hi guys,

    I did a macro to clear the hidden spaces in blank lines, but as you can see in the spreadsheet attached, it's changing the number from 14,225 to 14225 and it was not supposed to happen.

    Does any of you knows how to fix it?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: VBA - Macro changing number

    The numbers in your sheet all have a decimal point in them. I don't see any number with a comma. Also, your macro:
    Please Login or Register  to view this content.
    just trims all the cells in I2:N* of the extra spaces. When I clicked the button the numbers didn't change. By the way, this line:
    Please Login or Register  to view this content.
    can be written:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

+ 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. Replies: 0
    Last Post: 10-22-2013, 01:04 PM
  2. Replies: 6
    Last Post: 09-12-2012, 05:16 PM
  3. Changing the number of rows when variable rows are returned by macro
    By intj.inc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-07-2012, 09:01 AM
  4. [SOLVED] Help to Create Macro for changing to number format
    By naveenmarapaka in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-05-2012, 08:07 AM
  5. Macro is changing the number format
    By kynel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2012, 05:50 AM
  6. [SOLVED] Macro to copy and paste changing number of rows
    By phil3061 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2012, 04:55 PM
  7. Macro for changing number of rows
    By DyingIsis in forum Excel General
    Replies: 5
    Last Post: 04-01-2010, 10:55 AM
  8. [SOLVED] Changing format of number without changing the value
    By sweetsue516 in forum Excel General
    Replies: 2
    Last Post: 08-22-2005, 12:05 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