user578332
user578332

Reputation: 345

Turkish Characters in the VBA editor

I have a problem with Turkish characters in my simple VBA code. Whenever I write some text in my module in Turkish characters (e.g. 'ş, ə, ç, ğ, ö, ü, ı"), they change to unknown letters.

I want to change "Eight" to "Səkkiz","Five", "Beş","Three" "Üç" etc.

Upvotes: 2

Views: 3433

Answers (2)

Steve Rindsberg
Steve Rindsberg

Reputation: 14809

The VB editor doesn't support Unicode. Assuming that wherever you're displaying these characters does, you can do something like this:

Const UpsideDownE As Long = &H1DD

Sub Example()
' This would set the currently selected text in PowerPoint to ə
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange = ChrW(UpsideDownE)

End Sub

Of course, choose names for the constants that make sense to you ... whatever you'd normally call the ə character.

Upvotes: 1

gtzoumis
gtzoumis

Reputation: 484

May be you should change Font in the text editor Try: Tools > Options at the 2nd tab choose Font Courier New (Turkish)

Upvotes: 4

Related Questions