Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can this be done

Status
Not open for further replies.

igessey

Technical User
Oct 12, 2005
41
GB
I would like to know if there is some way to flash a pop up message box based on clipboard contents.

For example, if the clipboard contained a 4 digit number (copied and pasted from another application) then it would display a message box saying "Blah blah".

The clipboard would need to then clear itself and be ready for the next input.

Is this just fanciful thinking or can it be done?
 
Try something like
Code:
Public Sub PopFromClipboard()
    Dim strClip As Variant
    strClip = Clipboard.GetText
    If Len(strClip) = 4 And IsNumeric(strClip) Then
        MsgBox "Clipboard contains " & strClip
    End If
    Clipboard.Clear
End Sub
 
Great

I will give that try - see what happens

Thanks

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top