Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using VBA to copy select sheets to a new file and saving that new file.
Some sheets have charts, others the source for those charts. But the charts in the new file point back to the original file, even though I have also copied the source sheets into the new file with the same command using this code: Dim mySheet As Worksheet Dim sheetList As Variant ReDim sheetList(1 To ActiveWorkbook.Sheets.Count) i = 0 'initialize variable For Each mySheet In ActiveWorkbook.Sheets If mySheet.Name < "CHARTS (2)" And mySheet.Name < "TABLE" Then i = i + 1 sheetList(i) = mySheet.Name End If Next ReDim Preserve sheetList(1 To i) Sheets(sheetList).Copy Is there any way to make the new charts get their source from the new source sheets, or do I have to use SaveCopyAs and save the entire file instead? Thanks, Keithlo |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
One Chart, Same Data ranges, different source sheets | Charts and Charting in Excel | |||
Error Copying File or Folder message when copying file to CD | Excel Programming | |||
Vba code for migrating data from source file to w/book sheets. | Excel Programming | |||
copying and pasting from source sheet to destination sheet without naming source sht? | Excel Programming | |||
Chart source data when copying from one workbook to another | Excel Programming |