D
Dave Neve
Hi
The code below is for marking a word in Thai so that it is easier to
remember the 'tone' and vowel length.
eg. tha,thoop
Sub FallingLong()
Dim wordrange As Range, lrange As Range, i As Long, j As Long
Set wordrange = Selection.Range
j = 2
For i = 1 To wordrange.Characters.Count
Set lrange = wordrange.Characters(i)
lrange.Font.Size = 16
lrange.Font.Size = lrange.Font.Size - j
j = j + 2
lrange.Font.Spacing = 5
wordrange.Font.Color = wdColorSkyBlue
Next i
End Sub
But as you can see, there is a problem.
If the word has lots of characters, the final ones are too small to see
unless you have the vision of an owl!!!
I realise that I need a way of counting the characters in a word and an
'if, then' statement
but I am still incapble of writing this (sorry)
Could sm at least give me the outline and I will try to incorporte it into
my macros.
Thanks in advance
The code below is for marking a word in Thai so that it is easier to
remember the 'tone' and vowel length.
eg. tha,thoop
Sub FallingLong()
Dim wordrange As Range, lrange As Range, i As Long, j As Long
Set wordrange = Selection.Range
j = 2
For i = 1 To wordrange.Characters.Count
Set lrange = wordrange.Characters(i)
lrange.Font.Size = 16
lrange.Font.Size = lrange.Font.Size - j
j = j + 2
lrange.Font.Spacing = 5
wordrange.Font.Color = wdColorSkyBlue
Next i
End Sub
But as you can see, there is a problem.
If the word has lots of characters, the final ones are too small to see
unless you have the vision of an owl!!!
I realise that I need a way of counting the characters in a word and an
'if, then' statement
but I am still incapble of writing this (sorry)
Could sm at least give me the outline and I will try to incorporte it into
my macros.
Thanks in advance