S
Spiggy Topes
Got an odd one here.
I have suite of macros that create a workbook with a number of sheets,
containing charts from a number of separate workbooks. The charts show
a number of series, including a mean with custom error bars, taken
directly from two columns in the source data, spec for the + bars
='C:\Temp\[Some_File_Or_Other.xls]Data_Sheet'!$CK$2:$CK$366, and the
following column for the - bars.
I run the macro once, and save the resultant chart-filled workbook as
DirectoryA/FileA.xls.
I change the data in the source workbooks, rerun the macro and save the
results as DirectoryB/FileB.xls
I close Excel.
I open each file, and everything's fine.
I close Excel.
I move the file known as DirectoryB/FileB.xls to DirectoryA, so now I
have FileA and FileB both in the same directory.
I open one of the two files. It looks fine.
I open the other file. It too looks fine.
I alt-tab back to file one, and it's now showing the error bars from
file two. Other series are okay, but the error bars are from the most
recent file. I close the second file, no problem. I close the first
file, Excel asks if I want to save changes.
Normally, it's not not a problem. But I'm mailing these files out, and
if they're opened directly from Outlook, they're in the same directory,
and the recipients get very, very confused.
Any ideas for a simple fix?
I have suite of macros that create a workbook with a number of sheets,
containing charts from a number of separate workbooks. The charts show
a number of series, including a mean with custom error bars, taken
directly from two columns in the source data, spec for the + bars
='C:\Temp\[Some_File_Or_Other.xls]Data_Sheet'!$CK$2:$CK$366, and the
following column for the - bars.
I run the macro once, and save the resultant chart-filled workbook as
DirectoryA/FileA.xls.
I change the data in the source workbooks, rerun the macro and save the
results as DirectoryB/FileB.xls
I close Excel.
I open each file, and everything's fine.
I close Excel.
I move the file known as DirectoryB/FileB.xls to DirectoryA, so now I
have FileA and FileB both in the same directory.
I open one of the two files. It looks fine.
I open the other file. It too looks fine.
I alt-tab back to file one, and it's now showing the error bars from
file two. Other series are okay, but the error bars are from the most
recent file. I close the second file, no problem. I close the first
file, Excel asks if I want to save changes.
Normally, it's not not a problem. But I'm mailing these files out, and
if they're opened directly from Outlook, they're in the same directory,
and the recipients get very, very confused.
Any ideas for a simple fix?