PasteKeys Example

 

Option Explicit

Sub Main

Dim intReturn As Integer

 

Dim varKeysToPaste As Variant

 

 varKeysToPaste = "Paste these keys"

 

 intReturn = Action2.PasteKeys (varKeysToPaste)

 

 If intReturn = 0 Then

  MsgBox "Failure"

  MsgBox( Action2.GetLastError )

 ElseIf intReturn = 1 Then

  MsgBox "Success"

 End If

 

End Sub