D
Dave Neve
Hello
In adding your advice about collapsing some days ago, I noticed that my
macros started to have another problem in that the cursor suddenly started
to appear infront of the * that I add to some words to show that they have
short vowels.
I tried to correct it myself until the point where I no longer know where I
am and all my macros are different.
In other words, I've confused myself so much that I no longer know my arse
from my elbow if you will excuse the expression.
Could I please give you two macros to look at, one for short vowels and one
for short rising vowels.
If you can get them to work again so that the cursor is after the * (and
preferably with a space between the * and the cursor, I will try to
incorporate the trick into the rest of my macros)
Really sorry.
Sub MidShort()
Dim wordrange As Range, lrange As Range
Set wordrange = Selection.Range
Set lrange = wordrange.Duplicate
lrange.Collapse direction:=wdCollapseEnd
lrange.InsertAfter "* "
wordrange.Font.Color = wdColorSeaGreen
lrange.Font.Color = wdColorSeaGreen
Selection.Collapse direction:=wdCollapseEnd
Selection.ExtendMode = False
Selection.Font.Reset
End Sub
____________________________________________________________________________
___________________
Sub FallingShort()
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)
If Selection.Characters.Count <= 4 Then
lrange.Font.Size = 18
lrange.Font.Size = lrange.Font.Size - j
j = j + 2
wordrange.Font.Color = wdColorSkyBlue
Else
lrange.Font.Size = 18
lrange.Font.Size = lrange.Font.Size - j
j = j + 1
wordrange.Font.Color = wdColorSkyBlue
End If
Next i
lrange.InsertAfter "* "
lrange.Collapse direction:=wdCollapseEnd
Selection.Collapse direction:=wdCollapseEnd
Selection.ExtendMode = False
Selection.Font.Reset
End Sub
In adding your advice about collapsing some days ago, I noticed that my
macros started to have another problem in that the cursor suddenly started
to appear infront of the * that I add to some words to show that they have
short vowels.
I tried to correct it myself until the point where I no longer know where I
am and all my macros are different.
In other words, I've confused myself so much that I no longer know my arse
from my elbow if you will excuse the expression.
Could I please give you two macros to look at, one for short vowels and one
for short rising vowels.
If you can get them to work again so that the cursor is after the * (and
preferably with a space between the * and the cursor, I will try to
incorporate the trick into the rest of my macros)
Really sorry.
Sub MidShort()
Dim wordrange As Range, lrange As Range
Set wordrange = Selection.Range
Set lrange = wordrange.Duplicate
lrange.Collapse direction:=wdCollapseEnd
lrange.InsertAfter "* "
wordrange.Font.Color = wdColorSeaGreen
lrange.Font.Color = wdColorSeaGreen
Selection.Collapse direction:=wdCollapseEnd
Selection.ExtendMode = False
Selection.Font.Reset
End Sub
____________________________________________________________________________
___________________
Sub FallingShort()
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)
If Selection.Characters.Count <= 4 Then
lrange.Font.Size = 18
lrange.Font.Size = lrange.Font.Size - j
j = j + 2
wordrange.Font.Color = wdColorSkyBlue
Else
lrange.Font.Size = 18
lrange.Font.Size = lrange.Font.Size - j
j = j + 1
wordrange.Font.Color = wdColorSkyBlue
End If
Next i
lrange.InsertAfter "* "
lrange.Collapse direction:=wdCollapseEnd
Selection.Collapse direction:=wdCollapseEnd
Selection.ExtendMode = False
Selection.Font.Reset
End Sub