Pages

Tuesday, January 24

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