Using Windows script to paste or insert text into a new e-mail

L

Larry

Steve Yandl showed me how to set up an htm file with Windows script
inside it that would in one step insert selected text, the url, and the
title of a Web page into a Word document. This is a fantastic
capability.

Now I have another question. Can Windows script insert selected text
(whether from a web page or from Word) directly into a new e-mail? I
prefer to copy and paste the text, not insert it as a string, because
I'd like to keep any character formatting.

I use Outlook Express 6, IE6, Word 97, and Windows 98.

I'm sending this to both the vba group and the Windows group because the
question concerns both platforms.

Thanks,
Larry
 
P

PA Bear

Why not include the OE6 newsgroup? (I have.)

Copy/Pasting Word's formatting into OE(6) is fraught with incompatiblity,
Larry.
 
L

Larry

PA Bear,

Thanks for the cross posting.

The Word-OE relationship is not a problem, I copy text from Word into OE
all the time. I just want to automate it more.

One thing I want to do is run a Windows script from IE that inserts the
title, url and selected text from a web page directly into a new e-mail.

Another thing I do is, I copy a web page, then run a Word document that
pastes that selection into Word and does a bunch of formatting on it and
copies it, and then opens an e-mail. I then manually move the focus
from the To line to the client area and paste. I'd like those last two
steps to be automated, so that the clipboard contents get automatically
pasted into the e-mail and the whole operation gets done in one step.

Larry




formats the
 
S

Steve Yandl

Larry,

Normally, I'd suggest CDO but I'm guessing that with Word 97 and Windows 98,
that isn't available to you. Moreover, I suspect that you still want to
enter recipients from your contacts list and enter things like subject line
which can kind of crimp the advantages of scripting email.

One option might be to modify the script we worked on to do a SelectAll and
a copy operation from the Word document after the new entries are typed and
then launch msimn.exe which would allow you to enter address and subject
info and just do a Ctrl plus V to paste the clipboard contents into your new
OE message. Not total automation but gives you a lot of control and
prevents errors.

Steve Yandl
 
L

Larry

The material is beyond my level, and even if it is possible to do this,
it's not worth the research and effort for the small amount of increased
automation I'm seeking.

Thanks for the references.

Larry
 

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