Solved

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

Posted on 2011-03-02
4
342 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
  • 3
4 Comments
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This collection of functions covers all the normal rounding methods of just about any numeric value.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now