• VB constant for separator (Excel 2003)

    Author
    Topic
    #455796

    I spent a happy hour this morning using NetMeeting to control the PC of a Russian colleague, trying to understand why my code wasn’t working. It turns out that I was inserting an Excel formula that included AND(something, somethingelse) and the use of the comma is a regional setting, on his PC the correct syntax was AND(something; somethingelse).

    I am sure that there is a VB constant that I can use to insert the , or ; depending on regional settings, but I can’t remember what it is and I haven’t managed the correct incantation for finding it on my favourite search engine.

    Does anyone remember?

    StuartR

    Viewing 1 reply thread
    Author
    Replies
    • #1136008

      I found it, just in case anyone else stumbles on this post in the future it is
      Application.International(xlListSeparator)

      StuartR

    • #1136148

      >I found it, just in case anyone else stumbles on this post in the future it is

      International.
      Thanks!
      Handy set of standard constants.

      In Word97:

      Application.International(wdListSeparator)
    Viewing 1 reply thread
    Reply To: VB constant for separator (Excel 2003)

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

    Your information: