B
Bernd Wechner
I have been trying to work out why in migrating some of my Excel code from a
2003 platform to 2007 platform I saw a file blow out from 300KB to 11MB!
By examining the Open XML format contents I can trace the blowout to a
particular set of sheets which I moved into this sheet from another using the
Worksheet.Move() method.
On the 2003 platform this just moves the sheets from one workbook to another
as I intended.
On the 2007 platform it sort of does the same except now the sheets in the
target workbook seem to max out in rows and columns. That is the sheet is
saved as a 75MB XML inside the .xlsm file I'm using whereas comparable sheets
are like 5KB. Trying to look inside such a huge XML file is hard, and slow,
but clearly it is full of empty cell specifiers. The Move in 2003 just moves
the sheet and in 2007 it seems to recreate the sheet somehow.
Reading the documentation:
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.worksheet.move.aspx
I see no new arguments to the Move method in 2007 to specify or alter this
behaviour. Is this a bug in Excel 2007?
It looks like I may need a work around somehow perhaps by copying just
specified ranges from the source workbook to the target (as I only use a
modest part of the top left of the sheet after all).
I'm wondering if anyone has any light to shed on this experience and if
there is in fact a new feature in Excel 2007 which has this as a surprising
side effect? Or if this should be somehow registered with MS as a bug?
2003 platform to 2007 platform I saw a file blow out from 300KB to 11MB!
By examining the Open XML format contents I can trace the blowout to a
particular set of sheets which I moved into this sheet from another using the
Worksheet.Move() method.
On the 2003 platform this just moves the sheets from one workbook to another
as I intended.
On the 2007 platform it sort of does the same except now the sheets in the
target workbook seem to max out in rows and columns. That is the sheet is
saved as a 75MB XML inside the .xlsm file I'm using whereas comparable sheets
are like 5KB. Trying to look inside such a huge XML file is hard, and slow,
but clearly it is full of empty cell specifiers. The Move in 2003 just moves
the sheet and in 2007 it seems to recreate the sheet somehow.
Reading the documentation:
http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.worksheet.move.aspx
I see no new arguments to the Move method in 2007 to specify or alter this
behaviour. Is this a bug in Excel 2007?
It looks like I may need a work around somehow perhaps by copying just
specified ranges from the source workbook to the target (as I only use a
modest part of the top left of the sheet after all).
I'm wondering if anyone has any light to shed on this experience and if
there is in fact a new feature in Excel 2007 which has this as a surprising
side effect? Or if this should be somehow registered with MS as a bug?