LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
BW BW is offline
external usenet poster
 
Posts: 49
Default Runtime Error Msg: "Cannot empty the Clipboard"

Hello,

In an attempt to find a way of breaking a chart reference to worksheet cells
in pre-Excel2003 by using the chart's Series formula/Series named array and
avoiding the "Unable to set the XValues property of the Series class" error
message when the formual/named array is very large and , i've tried copying
the chart to the clipboard, then pasting back using the following code:

aWorksheet.ChartObjects.Item(1).Chart.CopyPicture Appearance:=xlScreen,
Size:=xlScreen, Format:=xlBitmap
aWorkbook.Sheets(1).Paste

The code above works but problem is if i have a user that opens many
INSTANCES of EXCEL.EXE each running an excel template that contain the above
code and executes the above code simultaneously, i get the following runtime
error message: "Cannot empty the Clipboard"

Based on the following KB article from MS:
http://msdn.microsoft.com/library/de...l=/library/en-
us/vbenlr98/html/vamsgclip2cantempty.asp

it appears one of the instances of excel is not releasing the clipboard. Is
this true (??).

Other than trapping the error and trying to copy/paste a 2nd time in the
trapping subroutine, is there another solution to overcoming this "Cannot
empty the Clipboard" error message, or is there another reason for this
errror message?

Thanks
 
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
Why do I get the message "cannot empty clipboard" in Excel 2007? Bradwin Excel Discussion (Misc queries) 0 January 7th 09 06:57 PM
Why I get the error "cannot empty the clipboard" Sathish Excel Discussion (Misc queries) 7 April 18th 08 01:46 PM
Excel 2003 "Cannot empty the clipboard" Lori Excel Discussion (Misc queries) 2 January 30th 08 08:47 PM
"cannot Empty the Clipboard" strange message 7 Network Excel Discussion (Misc queries) 1 July 31st 06 02:06 PM
"Cannot empty clipboard" message keeps popping up Amy Excel Discussion (Misc queries) 2 March 16th 06 06:52 PM


All times are GMT +1. The time now is 07:16 PM.

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

About Us

"It's about Microsoft Excel"