Copy text from clipboard (ctrl+c) and store into string

Hello friends,

Sometimes you need to retrieve and store text/data from MS clipboard. Here is the simple code to achieve that..

Dim objCB
Set objCB= CreateObject(“Mercury.Clipboard”)
str_1 = objCB.GetText
MsgBox str_1

1 thought on “Copy text from clipboard (ctrl+c) and store into string”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top