I have created a simple excel worksheet.
This is my macro code:
Sub MyMacro()
Sheets("Sheet1").Select
A$ = Cells(1, 1)
MsgBox (A$)
End Sub
It works correct, if Cell 1,1 contains an English word, or numbers.
But when I put some Persian/Arabic text into Cell 1,1 (example: سلام ) and run macro, macro shows ????. (It shows a ? instead of each Persian character)
How to solve this problem?
You could use the Windows API message box instead, which should display most encoding types
eg, this goes into a
MODULEI don’t have a 64bit machine with me at the moment so you may need to convert the StrPtr to 32bit Long on a 64bit machine