Turkish dotless i

R

Roderick O'Regan

I appreciate I may in the wrong forum for this question but here
goes...
I want to write a Turkish dotless i as part of a label to a command
button in the VBA editor of Word 2007 in Windows Vista.
I have done the following: Added the Turkish keyboard in the Control
Panel and set it to Turkish F.
No valid result.
Further research tells me that Alt+0131 (Unicode hex) should produce
the result. It does when entered on a document page of Word as
ordinary text. But try it in the VBA editor and it is a big no-no.
Can anyone help with this please? Or is there a more appropriate forum
I should be addressing?
Roderick
 
S

Steve Rindsberg

Roderick said:
I appreciate I may in the wrong forum for this question but here
goes...
I want to write a Turkish dotless i as part of a label to a command
button in the VBA editor of Word 2007 in Windows Vista.
I have done the following: Added the Turkish keyboard in the Control
Panel and set it to Turkish F.
No valid result.
Further research tells me that Alt+0131 (Unicode hex) should produce
the result. It does when entered on a document page of Word as
ordinary text. But try it in the VBA editor and it is a big no-no.
Can anyone help with this please? Or is there a more appropriate forum
I should be addressing?

No need to change keyboards.
I'm not sure if you can set the text directly in the editor but you can
do something like this in the form's initialization code:

Me.Label1.Caption = "Test: " & ChrW(&H131)

The font chosen for the label would have to include the dotless i glyph,
of course.
 
T

Tony Jollans

As I understand it, the VBA editor can not handle unicode characters. By
setting an appropriate code page you should be able to make the character
appear in the editor - but I don't think you can control other computers
your code runs on, so the character would not necessarily appear correctly
in the label. Using ChrW as Steve shows should guarantee correct display
everywhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top