Closed Thread
Results 1 to 2 of 2

If then else in multiple languages

  1. #1
    Registered User
    Join Date
    11-02-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    2

    If then else in multiple languages

    Hi,
    I wrote a VBA code in English and it is working fine. However, the same code is having problems running on a German computer. The "if then else" statement on the German computer is giving unexpected results. The following is my code:

    If Worksheets("Sheet1").Range("D12").Value < Worksheets("Sheet2").Range("B14").Value Then
    'True statements
    Else
    'False statements
    End If


    On the computer with English settings, the "True statements" are executed, which is correct.
    However, when I run the same code on a computer with German language settings, the "False statements" are executed. I do not understand the reason for the same. Could you please help me with this.

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: If then else in multiple languages

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1