Issue with Charts

Devil

New Member
Joined
Mar 12, 2011
Messages
15
I have got numerous charts embedded in a single sheet along with data. Now i need to move this one by one into multiple sheets.

The problem am facing is below.

I am pressing F11 and inserting a blank chart sheet. Then am coming back to my worksheet selecting the graph, right clicking and select location, insert as object in Chart1.

As soon as i do this am getting error that "Microsoft Office Excel has encountered a problem and needs to close. We are sorry for the inconvenience."

Mine is Excel 2003. Any help to resolve this will be highly appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
You are going about this in a way I would not. ChartObject objects on worksheets are a different object type than Chart objects which are charts on chart sheets. Consider simply selecting any cell in the source data range and hitting F11.
 
Upvote 0
BTW if there are "numerous charts" as you say on a single sheet, this macro would do the job quickly. The Activate and Select methods are important inclusions for this task if anyone is wondering why I have them in here.

Code:
Sub MoveCharts()
Application.ScreenUpdating = False
Dim i%, asn$
With ActiveSheet
asn = .Name
For i = Sheets(asn).ChartObjects.Count To 1 Step -1
Sheets(asn).Activate
Range("A1").Select
.ChartObjects(i).Activate
ActiveChart.Location Where:=xlLocationAsNewSheet, Name:="Chart" & i
Next i
End With
Application.ScreenUpdating = True
End Sub
 
Upvote 0
Thanks Tom for your quick reply.

Though the issue that I reported still perists. Its not happening in all sheets, its only a particular sheet. Investigating what's wrong with that..:banghead:

Meanwhile, i will give ur macro a try and revert.

Thanks again for your valuable feedback.
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,704
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top