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
 
Top