Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I tried 20+ codes for setting text to clipboard, BUT ALL WENT IN VAIN!!
Please help me in how to set text to clipboard using VBScript only.


Thanks in Advance,
Ajay Varma
Posted

1 solution

It looks like you are out of luck.
If you look at MSDN: Key Differences Between Visual Basic for Applications and VBScript[^] at the bottom, under "System Objects" you will find this message:

"Although Visual Basic for Applications supports the Screen, Printer, App, Debug, Err, and Clipboard objects, VBScript supports only the Err object. Therefore, VBScript does not allow you to access such useful objects as the mouse pointer or the clipboard. You can, however, use the Err object to provide runtime error handling for your applications."

You will probably have to find some other way to achieve your ends.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900