Jeff,
That is cool. Adding the following line before the first sendkeys() makes it so you don't have to select the text manually.
oShell.SendKeys("^{HOME}^+{END}");
Thanks for sharing it!
>I stumbled on a handy little script that runs Word's spell-checker against text entered in the browser.
>
>Save the code below with a .js extension, and add a shortcut to it to your browser's link bar.
>
>Then, after composing your message, just select the text and click the button.
>
>Pretty slick!
>
Steve Gibson