Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Intermittent Error - Method 'Add' of object 'HPageBreaks' failed | Excel Worksheet Functions | |||
Method 'Range' of object '_global' failed | Excel Discussion (Misc queries) | |||
Method 'MailEnvelope' of object '_Worksheet' failed | Excel Discussion (Misc queries) | |||
Method 'Add' of object 'CommandBarControls' failed | Excel Discussion (Misc queries) | |||
Method 'Paste' of object '_Worksheet' failed | Excel Discussion (Misc queries) |