Link to home
Start Free TrialLog in
Avatar of New_Alex
New_AlexFlag for Cyprus

asked on

Extract and Msgbox a string from a non latin Document in Word.

In word 2010 I use a simple macro (doesn’t matter to post here) to extract a string from the document which contains Greek characters.

The MsgBox that appears displays only question marks and some  latin characters like this “???? g?????? h?????? ??????” etc….

Any ideas of how I can enable support for Greek characters in VBA in word?
Thanks.
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

You could use a VBA Userform instead of a message box.

For instance:

Sub MyMsgBox()
    UserForm1.TextBox1.Text = Selection.Text
    UserForm1.Show vbModal
End Sub
Avatar of New_Alex

ASKER

Lots of errors matey. if there is no other alternative, how can I print the phrase  "Hello World" with the above funky method?

Thanks very much for your attention.


ASKER CERTIFIED SOLUTION
Avatar of New_Alex
New_Alex
Flag of Cyprus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please state your reason for accepting your own comment as the solution???

Because there is the best solution here, like it or not....


Take care anyway.....