LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with copying chart using VBA

Hi,

I'm copying a chart sheet from one workbook (an add-in) to another
workbook, but the chart in the new workbook looks slightly different:

1) The axis titles are missing.
2) I have a lot of text boxes on the chart, now they all moved.

I used the following code in the new workbook to copy the sheet:

Sub Plot()
If SheetExists("Diagram") = False Then
Workbooks("All-data.xla").Worksheets("Diagram").Copy
Befo=ActiveSheet
End If
PlotNewDiagram 'adding more curves to the existing chart
End Sub

What have gone wrong? How can I prevent the above? I can fix problem
#(1) by re-defining the axis titles in the code, but I really don't
know how to deal with with the relocated text boxes. Those texts were
used to annotate existing curves on the chart. With their locations
changed, they no longer make senses.

I'm grateful for any suggestions!

Charles
 
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
Problem copying Chart and Data from Excel 2007 Garyc Excel Discussion (Misc queries) 0 November 21st 08 08:38 AM
copying a worksheet tab with a chart, without losing chart formatt davey888 Charts and Charting in Excel 0 September 5th 07 02:56 AM
copying excel chart formats from one chart to another [email protected] Excel Discussion (Misc queries) 0 August 31st 05 02:18 PM
Excel VBA: Problem with copying an embedded chart from one worksheet to another Flystar[_13_] Excel Programming 2 May 21st 04 01:13 AM
Copying Problem Michael[_10_] Excel Programming 1 August 27th 03 09:18 AM


All times are GMT +1. The time now is 01:06 AM.

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"