• Internationalize Excel VBA (Excel 97 and 2000)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Internationalize Excel VBA (Excel 97 and 2000)

    Author
    Topic
    #363791

    I recently released an Excel workbook after a lot of testing and now one of the European users are saying that they get run-time errors! scream I do not know the message they saw as it’s second hand knowledge. Quite a few people here (US) have run it in xl97 and xl2000 with diferent service packs and haven’t report problems. Is there some list of How-To’s when developing for foreign markets that I obviously missed? The model does not use anything but the built-in references (VBA, Office, etc.) so I know it can’t be that. It’s impossible to duplicate and fix the error if I can’t see it here.

    Thnx, Deb crybaby

    Viewing 2 reply threads
    Author
    Replies
    • #556387

      Deb,

      KB article OFF97: Differences Between U.S. and International English Office (Q181597) says:
      Number formats, date formats, time formats, and measurements are based on system regional settings.

      Do your code manipulate such things?
      If you want you can send me the workbook and I test it on my system with Belgium settings to see if I can reproduce the errors. I have Excell 97 and 2000.

      • #556801

        Great info, I’ll check it all out. I also have the John Green book some on else suggested and have read J.Walkenbach’s book for info on this subject. I may also take you up on the offer to run my program on your non-English system. joy I’ll first have to remove some company info so you won’t know what it’s for other than seeing numbers. I spent a little bit of time using the Application.International() method and added the currency character and the thousands character to my code since I do force formatting on certain cells.

        I’ll get back to you again earlier next week when I can send you a simplified version of the workbook for testing. These programs are small (less than 500KB). I have the MSDN Universal Subscription so I might install some of the foreign versions to test. Developing apps that work the same in xl97 and xl2000 is diffcult enough but now I have to deal with International incompabiities too! I think I preferred my previous life as C++ programmer… much simpler in that once it’s a .exe file there aren’t the kind of undocumented incompatibilities to worry about.

        Deb clapping

      • #556821

        Can I just change my Regional Settings from Control Panel to test my program? I see the changing $ to the English pound does show up when I run Application.International(xlCurrencyCode) which of course makes sense that it would doh. I do not have to worry about non-English languages just conventions for formats in cells (Excel 97 and 2000 is my audience). Since I don’t know exactly what failed for my French user, I can only guess that it was my cell formatting which I do in VBA under some conditions. I need to go through the code again and look for other areas that might fail. Right now my audience is just our own employees world-wide so they all have the English Office programs but of course use their own regional settings.

        With all the variations in versions of Excel there is no way anyone can make a program that works for all.

        Thnx, Deb bagged

        • #556842

          I don’t know about the currency symbol, but here in belgium (and in france) we use the comma for decimal separator and the dot for the thousand separator.
          An issue that I have trouble with (in Access) was the date format. We use dd/mm/yy instaed of mm/dd/yy. I remember that in some cases when we enter 01/02/99 for 1st of Feb and VBA interpreted it as 2nd of Jan. To make it worse, when we entered 25/02/99 VBA understand it as 25st of feb with the same code.
          BTW my versions of office are Englisch International, wich is not the same version of the US. This may also be the version of your world-wide employees. If necessary I can do the tests on the pc of my sister who’s working with an Office 2000 Dutch version.

    • #556416

      Deb, John Green’s Book, Excel 2000 VBA Programmers Reference, has an entire chapter written by Stephen Bullen that discusses international issues. There also are different object libraries that you may need, see Q140629 . Unfortunately, it appears to me that VBA is very fragile on international issues. It’s a big help to have people like Francois do some quick checks for you.

    • #556819

      The one that always breaks my VBA code is Right-to-Left languages. If you’re going to be shipping your code to a world wide audience then you need to test using using one of these.

      StuartR

    Viewing 2 reply threads
    Reply To: Internationalize Excel VBA (Excel 97 and 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: