Consulting

Results 1 to 20 of 20

Thread: how can I display Japanese character in vba?

  1. #1

    how can I display Japanese character in vba?

    I am writing a VBA program in Excel 2003 and with windows xp os. I wanted to include Japanese characters in my program but without any success. The only thing I got was "???". I am very frustrated on this . Does anybody know what I should do? ...

  2. #2
    VBAX Regular
    Joined
    Oct 2006
    Location
    Warsaw, Poland
    Posts
    23
    Location
    Hi,

    Quote Originally Posted by dokidoki323
    I am writing a VBA program in Excel 2003 and with windows xp os. I wanted to include Japanese characters in my program but without any success. The only thing I got was "???".
    You have to install Arial Unicode font - it include Japanese characters and many others. Unicode font is a part of MS Office. It is not installed by default, but you may easily install it via Control Panel:

    http://support.microsoft.com/kb/287247
    One Hundred MS Excel Games

  3. #3
    Hi Bartek,

    Many many thanks for offering help to me. I have tried your method and have installed Arial Unicode font successfully. However, the problem is still there. I have tried to select Arial Unicode font for the whole worksheet but still only "???" appears. I forgot to mention that my window xp is a English/Chinese version. Do you think if it is a problem?

    Thanks again!

  4. #4
    VBAX Regular
    Joined
    Oct 2006
    Location
    Warsaw, Poland
    Posts
    23
    Location
    Hi,

    Quote Originally Posted by dokidoki323
    However, the problem is still there. I have tried to select Arial Unicode font for the whole worksheet but still only "???" appears.
    This problem has probably little to do with Windows regional settings. Arial Unicode allows display Japanese characters, however the problem you encountered may be due to the fact, that characters in your worksheet do not match respective characters in Unicode.

    Check out whether you could view Japanese characters on any Japanese web page - if your computer displays them correctly, the problem lies is how Japanese characters are coded in your worksheet.
    One Hundred MS Excel Games

  5. #5
    Hi Bartek,

    Thanks for your advice. I have tried again but still no luck. I have inserted some Japanese characters in arial unicode fonts into the worksheet and then used MSGBOX from the vba to display the characters but still only "???" was displayed. I have one last question if you don't mind. Could you tell me how I can use arial unicode fonts in my vba codes so I can do my last trial?


    Thank you!

  6. #6
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Hi dokidoki323
    I think you can read Chinese, you need to select writing style in VBE windows


    Attachment 4212

  7. #7
    Hi Emily,

    Appreciate your help. I have tried that already but still got "???". I have attached a testing excel file and a screen capture for your reference. Could you check if your computer can display Japanese characters if you run the testme code? Or if it is possible, could you attach a simple excel file with vba code that can display Japanese characters properly?

    Thank you!

  8. #8
    Sorry Emily, please find attachment of the screen capture for your reference. Thanks.

  9. #9
    Hi Emily, here is my testing file. Thanks.

  10. #10
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Hi dokidoki323

    I think you cannot change font in MsgBox, try

    CreateObject("Wscript.shell").popup Range("A1")

    Regards
    Emily

  11. #11
    Thank you Emily!

    You are a star! I have tried it and it is working now.

  12. #12
    VBAX Contributor
    Joined
    Jul 2005
    Posts
    169
    Location
    Hi
    Try (for XP)

    [Control Panel] - [Date, Time, Lauguage and Regional Options] -
    [Regional And Language Options] under "or Pick a Panel Control icon"

    Now you get Regional and Language Options dialog...
    [Language] - check the box for "Install East asian Languages" under Supplimenta language support

    This will install the language files...

    Click on "Details" under Text services and input language option Then click on "Add"

    If need to install "IME"-Input Method Editor, you need more steps....

    HTH

  13. #13
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Hi jindon

    I have added Japanese IME but still display ??? in MsgBox

    PS. We need to retain our default language

  14. #14
    VBAX Contributor
    Joined
    Jul 2005
    Posts
    169
    Location
    Quote Originally Posted by Emily
    Hi jindon

    I have added Japanese IME but still display ??? in MsgBox

    PS. We need to retain our default language
    Have you ticked on Japanese from the list when you are in Regional Options?

  15. #15
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Quote Originally Posted by jindon
    Have you ticked on Japanese from the list when you are in Regional Options?
    Yes, I did

    Attachment 4216

  16. #16
    VBAX Contributor
    Joined
    Jul 2005
    Posts
    169
    Location
    Hi Emily

    Well, that's what I've done when I was using Eng version of Excel.....

    Sorry, but I don't understand it...

  17. #17
    Hi Emily,

    I wonder if you have solved the ??? problem already. Your solution for displaying Japanese text with window script was great. However, I still need to use an INPUTBOX for entering Japanese characters. Again, as soon as the Japanese characters were entered, they became ??? again. What a difficult problem I have! Hope you can give me a hint on this.

    Thanks a lot!

  18. #18
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    dokidoki323, please visit the link below. The add-in may be useful (Not tested)

    http://www.h3.dion.ne.jp/~sakatsu/kt...es_English.htm

  19. #19
    Hi Emily,

    I have tried the link you gave me and it worked perfectly!!! You are my savior!!! I am so pleased with it.

    Many Many Thanks!

  20. #20
    Hi emily,

    Hope you are doing good!
    I am also facing the same issue, could you please reshare the link as im getting an error when i tried to load the link..

Posting Permissions

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