Is there a way to send text to the clipboard using a vb script?

I want to be able to send a string to the clipboard so it will be available
once the script is done running.
Thanks.

Re: send a string to the clipboard? by McKirahan

McKirahan
Fri May 21 12:06:24 CDT 2004

"Mark" <sdf@yahoo.com> wrote in message
news:u$qhdR1PEHA.3452@TK2MSFTNGP10.phx.gbl...
> Is there a way to send text to the clipboard using a vb script?
>
> I want to be able to send a string to the clipboard so it will be
available
> once the script is done running.
> Thanks.


Dim oHtml
Set oHtml = CreateObject("htmlfile")
WScript.Echo oHtml.ParentWindow.ClipboardData.GetData("text")



Re: send a string to the clipboard? by Mark

Mark
Fri May 21 12:09:35 CDT 2004

thanks!