automate clear clipboard

Y

YZXIA

How do I automate clear clipboard with VBA? automate Edit -> office
clipboard ->clear all

I tried to record the VBA code but no code was recorded.
 
P

Perry

Set a reference in VBE Tools | References
pointing to Microsoft forms 2.0 library and go

Dim oD as New Dataobject
oD.settext ""
oD.Putinclipboard

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top