Code Script

Home | Scripts | Tutorials | Disclaimer | Sitemap | Contact

   Copy Text To Clipboard

Vbscript / User Interaction / Copy Text To Clipboard

Use the Internet Explorer object to copy text to the users clipboard ready to paste when required.

strClipb = "This text has been copied to the clipboard."

Set objIE = CreateObject("InternetExplorer.Application")
objIE.document.parentwindow.clipboardData.SetData "text", strClipb

Please note that a disclaimer applies to any code on this page.
  Go Back
  Print Page

- Links
- Reference
- Script Editors
- Tutorials
- Vbscript
     - Active Directory
     - Exchange
     - Files And Folders
     - General
     - Ms Office
     - Operating System
     - Processes And Services
     - Text Processing
     - User Interaction
          - Browse For File Dialogue Box
          - Browse For Folder Dialogue Box
          - Convert Byte Value To Kb-mb-gb-tb
          - Copy Text To Clipboard
          - Select Option Popup Dialogue
     - Web Servers