reverse text direction - type right to left

Q

quarrithbrakka

I am needing to type using Ancient Hebrew font. Hebrew reads from right to
left, so I need to either type right to left, or highlight the text and then
click something to change text direction after typing.
 
M

macropod

Hi quarrithbrakka,

Here's a macro that reverses the selected text.

Sub Reverse()
Selection.TypeText Reversed(Selection)
End Sub

Function Reversed(Selection As String) As String
If (Len(Selection) > 1) Then
Reversed = Reversed(Mid$(Selection, 2)) + Left$(Selection, 1)
Else
Reversed = Selection
End If
End Function

Cheers
 

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