• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to check if there are any copied contents in the clipboard?

inddon

Member
Hello There,

I would like to know how to check if the user has copied any contents (row, columns, cells) in the clipboard for the current worksheet in sub 'Worksheet_SelectionChange'.

For eg.
If any copied contents then
'do nothing
else
'do something
end if

Your help is appreciated.

Thanks & regards,
Don
 
Herewith the below code to check if any copied contents exists in Clipboard
Code:
If Application.ClipboardFormats(1) = -1 Then
 
Back
Top