Consulting

Results 1 to 2 of 2

Thread: Foreign language

  1. #1
    VBAX Regular
    Joined
    Feb 2009
    Posts
    35
    Location

    Foreign language

    Hi

    I work with forms and controls.
    I try to display values in Foreign Language via VBA.
    Since I don't know what the Language for Non- Unicode programs setting in the control panel will be - I don't want to put the values literally in the VBA code.
    Therefore, I put the values in the Excel Sheet Cells (e.g. Worksheets(SheetInd).Cells(1,1))

    The question is - why if I do this:
    [VBA]TBoxName.Text = Worksheets(SheetInd).Cells(1, 1)[/VBA]
    it works fine and I can see the foreign language value in the text box

    when I do this:
    Me.Controls(CBName).AddItem (Worksheets(SheetInd).Cells(1, 1))[/VBA]
    it also works fine and I can see the foreign language value in the combo box drop down list

    BUT when I do this:

    [VBA]Response = MsgBox(Worksheets(SheetInd).Cells(1, 1))[/VBA]
    I see ??? instead of the value itself

    Thanks
    Asi

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Presumably MsgBox doesn't support Unicode?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •