+ Reply to Thread
Results 1 to 9 of 9

Asian Language Caption for Command Button

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Chiang Mai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Question Asian Language Caption for Command Button

    Hi i'm new here,

    I have question about put Asian language into Caption of Command Button (active x).

    The problem is some of alphabet like (in my case it's Vietnamese) will display as ? in Caption.
    How do i fix that?

    I have tried some technique but none of them work.
    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Asian Language Caption for Command Button

    Hi Zyphers,
    i had the same problem with Pashto language. I used the ChrW-function to solve the problem.

    For example if you want to use "ớ" in your vba code it will appear as "?". What you can do is to find out the ChrW-number of "ớ". That would be ChrW(7899). So instead of typing "ớ" in your code you just type ChrW(7899) instead. That would work i think.

    Now how to find out which letter has which number for ChrW. Well i found it out by recording a macro in MS word in which i typed one pashto letter after another. In the recorded code i could then see ChrW number for each typed pashto letter.

    Example:

    you want to replace "ớ" by "" in your excel file with the help of a macro. The macro would look like this ( i just recorded one and replace "?" with ChrW(7899)):


    {instead of .Text="ớ" you type .Text = ChrW(7899)}
    Please Login or Register  to view this content.
    I would suggest that you first find ChrW numbers for all letters of your langauge and make an excel table for that. So you dont have to search for them in future.

    I hope it helps!

  3. #3
    Registered User
    Join Date
    09-30-2009
    Location
    Chiang Mai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Asian Language Caption for Command Button

    Alright, Thanks so much.

    I will tell the result after I try.

  4. #4
    Registered User
    Join Date
    09-30-2009
    Location
    Chiang Mai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Asian Language Caption for Command Button

    Ok thanks again it works but ..not really complete.

    I followed you advice. So here is my code
    Please Login or Register  to view this content.
    The ChrW$(&H1EDB) will be like what you said. But here is what it happen.. When i click the button the caption change correctly but when i click on other part of my sheet the caption go back to ? again! And when i click the button again it went back to correct character!

    I don't understand why it became like this.. i'm almost done it.
    Thanks in advance

  5. #5
    Forum Moderator dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Asian Language Caption for Command Button

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    http://www.mrexcel.com/forum/showthread.php?t=419385

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  6. #6
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Asian Language Caption for Command Button

    Hi,

    it works fine with me here. Try ChrW(&H1EDB) instead of ChrW$(&H1EDB). The "$" before "(" must be removed.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-30-2009
    Location
    Chiang Mai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Asian Language Caption for Command Button

    I changed it but still got the same problem
    I feel that it might be something to do with my window setting somehow?

    P.S. I also link from that duplicated thread to here. So now they're linked. Apologize for inconvenient.

  8. #8
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Asian Language Caption for Command Button

    Sorry but dont know what is wrong!

  9. #9
    Registered User
    Join Date
    09-30-2009
    Location
    Chiang Mai
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Asian Language Caption for Command Button

    Alright, anyway thanks so much for all.
    So now i have direction for my solution.

    Whenever i find it. i'll come back and post it here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1