Clear Clipboard 
Author Message
 Clear Clipboard

I would like VBA to clear the clipboard (in OFF2K) after
it commits a paste with formatting. Lines one and three
make sense to me, but I do not know how to tell the
clipdoard toolbar to clear the clipboard of all items
(line two).

1)  CommandBars("Clipboard").Visible = True
2)  CommandBars("Clipboard").
3)  CommandBars("Clipboard").Visible = False

Any advice!?!?

TIA
Sean Hanson



Sat, 18 Jun 2005 22:29:35 GMT  
 Clear Clipboard
The following one line procedure will clear the clipboard:

---
Sub ClearClipboard()
    CommandBars.FindControl(Id:=3634).Execute
End Sub
---

- Chirag
  http://officerone.tripod.com/


Quote:
> I would like VBA to clear the clipboard (in OFF2K) after
> it commits a paste with formatting. Lines one and three
> make sense to me, but I do not know how to tell the
> clipdoard toolbar to clear the clipboard of all items
> (line two).

> 1)  CommandBars("Clipboard").Visible = True
> 2)  CommandBars("Clipboard").
> 3)  CommandBars("Clipboard").Visible = False

> Any advice!?!?

> TIA
> Sean Hanson



Sat, 18 Jun 2005 23:03:03 GMT  
 Clear Clipboard
Thank you very much. It works like a charm.
Quote:
>-----Original Message-----
>The following one line procedure will clear the clipboard:

>---
>Sub ClearClipboard()
>    CommandBars.FindControl(Id:=3634).Execute
>End Sub
>---

>- Chirag
>  http://officerone.tripod.com/



>> I would like VBA to clear the clipboard (in OFF2K) after
>> it commits a paste with formatting. Lines one and three
>> make sense to me, but I do not know how to tell the
>> clipdoard toolbar to clear the clipboard of all items
>> (line two).

>> 1)  CommandBars("Clipboard").Visible = True
>> 2)  CommandBars("Clipboard").
>> 3)  CommandBars("Clipboard").Visible = False

>> Any advice!?!?

>> TIA
>> Sean Hanson

>.



Sat, 18 Jun 2005 23:29:19 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. clear clipboard

2. Clear Clipboard on file.close

3. clear clipboard

4. Macro to clear clipboard

5. Clear clipboard

6. how to clear clipboard?

7. Clearing Clipboard Contents From Excel VBA

8. Clear Clipboard

9. Access XP: Clearing the clipboard / not saving data to the clipboard

10. Clearing the clipboard/memory

11. Clear the clipboard

12. Clipboard.clear

 

 
Powered by phpBB® Forum Software