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!!
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.
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks