Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Move an embedded chart on a worksheet to a chart sheet with VBA 2

Status
Not open for further replies.

bacon4life

Electrical
Feb 4, 2004
1,527

Does anyone know how to move an embedded chartObject from a worksheet to a separate chartsheet with VBA. Manually I would just right click and select move to new sheet but I can't find an equivalent VBA command.

Since it is a chartObject, I can't use Charts.move. Chart.add will create a new chartsheet, but I can't figure out how to move the chart from Sheet1 over to the newly create chartsheet.

Thanks
 
Replies continue below

Recommended for you

This will work if the chart is active. If not, replace "ActiveChart" with the name of the chart object.

ActiveChart.Location Where:=xlLocationAsNewSheet
 
Have you tried the macro recorder with your operations?

TTFN
faq731-376
7ofakss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor