Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Paste Method of Worksheet Failed When Copying Chart Object

In a VBA macro for Excel, I have some code that works for awhile and
then bombs with the Error of a Past Method Worksheet Failed. I'm
essentially running through a series of products and producing 6
charts for each product on a sheet. The 6 charts are pre-made and
have specific names assigned to them so I can easily copy them to the
newest sheet.

The error is not too descriptive, but I'm guessing the chart was never
copied. Possibly due to lack of memory. I've tried using
Application.CutCopyMode = False to dump memory, but that does not seem
to work.

Any guidance on this error would be much appreciated.

For cht = 1 To 6
Select Case cht
Case 1
GRAPH_TYPE = "DueTo_CHT"
'sheigth = 1.14
'swidth = 1.5
Sheets("STD_GRAPHS").ChartObjects("DueTo_CHT").Cop y
Sheets("temp_sheet").Paste
-----------------------------------------------Error occurs here
Application.CutCopyMode = False
With Sheets("temp_sheet").Shapes("DueTo_CHT")


Regards,

Larry

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
Intermittent Error - Method 'Add' of object 'HPageBreaks' failed Jamey Weare Excel Worksheet Functions 1 December 22nd 06 01:40 AM
Method 'Range' of object '_global' failed higherlimits Excel Discussion (Misc queries) 3 June 23rd 06 06:16 PM
Method 'MailEnvelope' of object '_Worksheet' failed [email protected] Excel Discussion (Misc queries) 1 December 7th 05 11:20 PM
Method 'Add' of object 'CommandBarControls' failed LAF Excel Discussion (Misc queries) 0 September 12th 05 02:02 PM
Method 'Paste' of object '_Worksheet' failed markline Excel Discussion (Misc queries) 7 May 28th 05 05:02 AM


All times are GMT +1. The time now is 11:46 PM.

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"