Results 1 to 4 of 4

Thread: Stucked beween Decimal point and common issue in Microsoft Excel

  1. #1
    Join Date
    Feb 2012
    Posts
    11

    Stucked beween Decimal point and common issue in Microsoft Excel

    If I use a VBA form to fill out data which sometimes have a decimal separator, in Europe the comma is used as a decimal sign. However when I use a comma the value is interpreted as a text when the macro places the value in the spreadsheet. Only when I use the decimal point in the VBA form, the value is accepted as a value in the spreadsheet. Does this have to do anything with the MS Window settings or is it releated to my english Excel version. How can I prevent this problem without going into VBA code to tackle it.

  2. #2
    Join Date
    Aug 2011
    Posts
    695

    Re: Stucked beween Decimal point and common issue in Microsoft Excel

    You are trying to use European data in a UScentric workbook. Excel looks at your Windows settings. So there are 3 ways to avoid this (1) To get your European counterparts to work in US style (unlikely), (2) To change your settings when you absolutely have to use their data in their local format, (3) You can get VBA to make the adjustments for you.

  3. #3
    Join Date
    Mar 2011
    Posts
    542

    Re: Stucked beween Decimal point and common issue in Microsoft Excel

    The strange thing is that I am working with a Dutch Windows version set to the European settings? However I use the English version of Office. In the spreadsheet it works fine, but the VBA code seems to be based on US standards?? Is there a way to change this setting? Moreover I have currently installed the Dutch Office version and the problems remain. So typing eg. 2,5 in a VBA form results in 2.5 in the spreadsheet cell, which is interpreted as a text.

  4. #4
    Join Date
    May 2011
    Posts
    523

    Re: Stucked beween Decimal point and common issue in Microsoft Excel

    I find that suggestion 2 (change your settings) is the easiest way to workaround with. After all, the change only has to be temporary.

Similar Threads

  1. How to remove the decimal point for cell in Microsoft Excel
    By Kungfu Pandey in forum MS Office Support
    Replies: 1
    Last Post: 14-01-2012, 06:20 PM
  2. Replies: 5
    Last Post: 11-07-2011, 10:38 AM
  3. Problem of Decimal point in C
    By Welsh in forum Software Development
    Replies: 5
    Last Post: 23-12-2009, 09:23 PM
  4. How to display decimal numbers in Excel sheet
    By Halina in forum Windows Software
    Replies: 3
    Last Post: 05-05-2009, 03:13 PM
  5. Excel Issue for decimal Point
    By Bassus in forum Windows Software
    Replies: 3
    Last Post: 15-01-2009, 10:54 AM

Tags for this Thread

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
  •  
Page generated in 1,713,571,761.16754 seconds with 17 queries