Advertisement
leandrobpedro

Untitled

Jan 26th, 2018
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub CopyToClipBoard( text )
  2.     Set wshShell = CreateObject("WScript.Shell")
  3.     Set oExec = WshShell.Exec("clip")
  4.    
  5.     Set oIn = oExec.stdIn
  6.    
  7.     oIn.WriteLine text
  8.     oIn.Close
  9. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement