Sorry, got it!
One has to also load the selection into a variable, so I added
s = document.selection.Text; after extending the selection range.
(Now I have to figure out how to extend the toggle to also capitalize…)
So, what is the ‘Capitalize’ equivalent to
And alternatively, how can
document.selection.ChangeCase(eeCaseCapitalize); be used?