K
klgrube
Hi
In an excel spreadsheet, there are three worksheets that are populated with data in perhaps 20 columns and up to 3000 rows, (along with several other worksheets in the same spreadsheet) The spreadsheet is 12 MB with the hard-coded (hand keyed) data sitting in each of these three worksheets. We decided that we wanted to import the data to these pages from SQL Server rather than maintain it manually, so we wrote a macro that clears the three worksheets and then executes the "Get External Data" function for each of the three worksheets. However, when we run the macro and it replaces the existing hard-coded data with the results of the query, although the new data appears to take up no more space than the original data, the spreadsheet suddenly triples in size, even after you save it (or do a save-as to the same filename.) Any reason why this should be happening? Anything I can do to prevent it? The text of the macro itself is very small. Is there a different way I should be clearing these worksheets? Why is the same amount of data taking up three times the space
These spreadsheets are accessed remotely across a citrix network, and even at 12 mb, they take a while to open and save. We really need to resolve this sudden change in file size. Any suggestions
Thanks
Karen Grub
[email protected]
[email protected]
In an excel spreadsheet, there are three worksheets that are populated with data in perhaps 20 columns and up to 3000 rows, (along with several other worksheets in the same spreadsheet) The spreadsheet is 12 MB with the hard-coded (hand keyed) data sitting in each of these three worksheets. We decided that we wanted to import the data to these pages from SQL Server rather than maintain it manually, so we wrote a macro that clears the three worksheets and then executes the "Get External Data" function for each of the three worksheets. However, when we run the macro and it replaces the existing hard-coded data with the results of the query, although the new data appears to take up no more space than the original data, the spreadsheet suddenly triples in size, even after you save it (or do a save-as to the same filename.) Any reason why this should be happening? Anything I can do to prevent it? The text of the macro itself is very small. Is there a different way I should be clearing these worksheets? Why is the same amount of data taking up three times the space
These spreadsheets are accessed remotely across a citrix network, and even at 12 mb, they take a while to open and save. We really need to resolve this sudden change in file size. Any suggestions
Thanks
Karen Grub
[email protected]
[email protected]