Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Clearing the clipboard

Hello,

I'm looking for some API or othe method for clearing the clipboard in Excel
2003


Thanks,




Avi Benita 054-4660641 wwwAvi Benita 054-4660641 www.avibenita.com


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Clearing the clipboard

Hi Avi,

Try:

Application.CutCopyMode=False

---
Regards,
Norman



"Avi" wrote in message
...
Hello,

I'm looking for some API or othe method for clearing the clipboard in
Excel 2003


Thanks,




Avi Benita 054-4660641 wwwAvi Benita 054-4660641 www.avibenita.com



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default Clearing the clipboard

Hi Avi, this is what I use, its one of Chips...works fine

ste

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Clearing the clipboard

Application.CutCopyMode=False

This doesn't clear all the data in the clipboard, only Excel
data. Text will remain. To fully clear the clipboard, use

Declare Function CloseClipboard Lib "user32" () As Long
Declare Function EmptyClipboard Lib "user32" () As Long
Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long)
As Long

Sub AAA()
OpenClipboard 0&
EmptyClipboard
CloseClipboard
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Norman Jones" wrote in message
...
Hi Avi,

Try:

Application.CutCopyMode=False

---
Regards,
Norman



"Avi" wrote in message
...
Hello,

I'm looking for some API or othe method for clearing the
clipboard in Excel 2003


Thanks,




Avi Benita 054-4660641 wwwAvi Benita 054-4660641
www.avibenita.com





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Clearing the clipboard

Hi Chip,

Thank you for the correction and elucidation.

---
Regards,
Norman



"Chip Pearson" wrote in message
...
Application.CutCopyMode=False


This doesn't clear all the data in the clipboard, only Excel data. Text
will remain. To fully clear the clipboard, use

Declare Function CloseClipboard Lib "user32" () As Long
Declare Function EmptyClipboard Lib "user32" () As Long
Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long

Sub AAA()
OpenClipboard 0&
EmptyClipboard
CloseClipboard
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Norman Jones" wrote in message
...
Hi Avi,

Try:

Application.CutCopyMode=False

---
Regards,
Norman



"Avi" wrote in message
...
Hello,

I'm looking for some API or othe method for clearing the clipboard in
Excel 2003


Thanks,




Avi Benita 054-4660641 wwwAvi Benita 054-4660641 www.avibenita.com







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
clearing the clipboard [email protected] Excel Discussion (Misc queries) 2 April 25th 07 09:11 AM
Clearing the clipboard Greg Billinge Excel Programming 2 September 2nd 05 01:19 PM
Clearing Clipboard Patrick[_7_] Excel Programming 1 September 28th 04 01:36 PM
clearing the clipboard mike Excel Programming 1 March 4th 04 08:34 PM
Clearing clipboard Charles Maxson Excel Programming 1 December 1st 03 02:46 PM


All times are GMT +1. The time now is 08:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"