How delete the cliboard

  • Thread starter Thread starter Aldo Miele
  • Start date Start date
A

Aldo Miele

I need to know under windows Xp how is possible thru a Excel Macro to delete
the values in the clipboard?

Clipboard.clear dosnt' work
 
Hi Aldo

After you paste use this line
Application.CutCopyMode = False
 
This is how I do it with Windows 2000 and Excel 2000:

Dim doFName As MSForms.DataObject

Set doFName = New DataObject

doFName.SetText ""

doFName.PutInClipboard ' clears clipboard



HTH

Ed
 

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

Back
Top