Arabic characters don't show in excel VBA code

谁说我不能喝 提交于 2019-12-01 07:27:49

问题


I can't write arabic strings in VBA code in excel, it shows as weird characters. Tried it on many machines with excel 2013 or 2010, on windows 8 or windows 7, with or without arabic proofing tools installed. Arabic language is already installed on all machines, system locale is arabic. There's no problem typing arabic characters on excel worksheets or even MS word but not in VBA code. Please help.


回答1:


in VB Editor: - 1- click tools 2- Select Options... 3- click Editor Fofmat 4- Change font to(Courier New (Arabic)) 5- click OK now you can write in both English and Arabic I hope this will solve your problem




回答2:


In Windows XP:

  1. > Control Panel
  2. > Regional and Language Options
  3. > Advanced Tab
  4. > Select Arabic (depending on your country) You will be asked to insert the Windows CD, insert it and then browse to the I386 Folder then press ok.
  5. > restart the PC and it should work now fine.

I beleve it's the same on Windows 7, the whole problem is in the non-unicode programs section set it to Arabic.




回答3:


In win 10, you must change your system locale to match your language. You can find it here: 1- Press win key or click on it 2- Type region and click on it when windows finds it 3- Choose administrative tab 4- Under the language for non-unicode programs you will find "change system locale" key 5- A restart would be required



来源:https://stackoverflow.com/questions/18868029/arabic-characters-dont-show-in-excel-vba-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!