+ Reply to Thread
Results 1 to 7 of 7

force dot instead of comma via vba or change it

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    force dot instead of comma via vba or change it

    Hi all,

    I really need your help
    I have a workbook with several worksheets in which a user enters information in a range of cells formatted as percentage.
    Is it possible to prevent the user from inserting "," instead of "."? Or how can I change "," into "." via vba code?

    i know something similar was posted before, but not for cells formatted as percentage.

    I tried this:

    Please Login or Register  to view this content.
    But it doesn't seem to be working.

    Thank you very much in advance!

    Kind regards,
    Alina

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: force dot instead of comma via vba or change it

    Hey
    There is some problem in attaching the file, can you send me to [email protected]
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: force dot instead of comma via vba or change it

    the fact is that it is for work, it contains a lot of confidential info and it's a big workbook, so i'm not really comfortable sending it...

  4. #4
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: force dot instead of comma via vba or change it

    Hey Attachment is working here you can upload sample workbook.......not the entire.....

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: force dot instead of comma via vba or change it

    Maybe?

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-08-2014
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    31

    Re: force dot instead of comma via vba or change it

    yei, it's working. Thank you so, so much!
    Your solution is so simple, so elegant, thanks again

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: force dot instead of comma via vba or change it

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rules and mark this thread as SOLVED. See link for guidance.

    http://www.excelforum.com/forum-rule...rum-rules.html

+ 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. Force Recalculation of Workbook on change event
    By scribbler in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-15-2011, 08:33 AM
  2. Force Change Event in workbook
    By scribbler in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-28-2011, 06:37 PM
  3. how to force only one part of the function to change?
    By noobi zubi in forum Excel General
    Replies: 2
    Last Post: 07-08-2010, 06:04 AM
  4. Force file name change
    By Otto Moehrbach in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2006, 12:55 PM
  5. Force format change in excel
    By Benson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2005, 06:50 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