ClipBoards

richarddawson

Board Regular
Joined
Oct 18, 2014
Messages
95
I have a need to be able to discover if there is anything on the Office Clipboard. An item count would be perfect.
I am using 64 bit - but can usually adapt 32 bit instructions.

I am reluctant to try the alternative of using the system as this would raise a whole new range of questions - though it would be easier to clear.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
For a simple count:

Code:
Function OclipItemCount() As Long
    On Error Resume Next
    OclipItemCount = CLng(Split(Application.CommandBars("Office clipboard").Controls(1).Caption)(0))
End Function
 
Upvote 0
What version are you running? It works for me in 2010.
 
Upvote 0
What does the caption at the top of the clipboard pane say?
 
Upvote 0
Oh, that would explain it. In 2010, if there are items on it, it shows "7 of 24 - Clipboard" for example. I'll have to review when I have access to 2016.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top