View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
mtatlow mtatlow is offline
external usenet poster
 
Posts: 4
Default clearing the office clipboard in vba

When I try and run this code I receive a User-defined type not defined ERROR
how do I set MyDataObj in Excel2003

"ste mac" wrote:

Hi, try this, its one of Chips.. l use it all the time..

Public Sub ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Sub

seeya ste