Solved

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

Posted on 2011-03-02
4
386 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:New_Alex
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 35019220
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
0
 
LVL 1

Author Comment

by:New_Alex
ID: 35024106
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.


0
 
LVL 1

Accepted Solution

by:
New_Alex earned 0 total points
ID: 35034005
In XP.

Go to control panel / Regional and Language Options / Advanced /
Then go to the section "Language for non-Unicode programs", Set your language and...
enjoy....

That's it, I am giving full points to my self.....Sorrryyyy!!!!

0
 
LVL 1

Author Closing Comment

by:New_Alex
ID: 35067771
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.....
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question