Skip to content

Instantly share code, notes, and snippets.

@ymotchi
Created June 17, 2012 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymotchi/2943883 to your computer and use it in GitHub Desktop.
Save ymotchi/2943883 to your computer and use it in GitHub Desktop.
User Form of "Monitoring Clipboard in VBA"
Private Sub CheckBox1_Change()
If CheckBox1.Value = True Then
Module1.catchClipboard
Else
Module1.releaseClipboard
End If
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
If CheckBox1.Value = True Then
Module1.releaseClipboard
CheckBox1.Value = False
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment