Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
clearing the clipboard
I have a macro that is supposed to write a subtotal to a
new line. However, it sometimes writes a line with previous data. Our latest attempt to correct this issue concerns the clipboard. Is it possible the clipboard is not getting cleared and writing the same information again? Any suggestions on how to clear the clipboard would be appreciated or how to verify that this is the problem would also help. I tried to record a macro pushing the clear all on the clipboard toolbar but that did not work. Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
clearing the clipboard
Hi
have a look at http://tinyurl.com/3yoqc Try for example the following code: Public Declare Function OpenClipboard Lib "user32" ( _ ByVal hwnd AsLong) As Long Public Declare Function CloseClipboard Lib "user32" () As Long Public Declare Function EmptyClipboard Lib "user32" () As Long Sub ClearClipboard() OpenClipboard (0&) EmptyClipboard CloseClipboard End Sub -- Regards Frank Kabel Frankfurt, Germany "mike" schrieb im Newsbeitrag ... I have a macro that is supposed to write a subtotal to a new line. However, it sometimes writes a line with previous data. Our latest attempt to correct this issue concerns the clipboard. Is it possible the clipboard is not getting cleared and writing the same information again? Any suggestions on how to clear the clipboard would be appreciated or how to verify that this is the problem would also help. I tried to record a macro pushing the clear all on the clipboard toolbar but that did not work. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
clearing the clipboard | Excel Discussion (Misc queries) | |||
clipboard clearing in excel, access, word... | Excel Discussion (Misc queries) | |||
Excel clearing clipboard | Excel Programming | |||
Clearing clipboard | Excel Programming | |||
Clearing clipboard | Excel Programming |