Excel: Resetting Last Cell Address Fixes Memory/Printing ProbsLast reviewed: September 13, 1996Article ID: Q100406 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, you can press CTRL+END to select the last cell in a cell table or dependency table. In some cases this cell may be well beyond the actual data in your worksheet. In some cases, this cell may result in memory or printing problems. To reset the last cell address, you must clear all information (data and formatting) from the unused columns and rows of your sheet.
MORE INFORMATIONIf you are working with a large sheet that contains many formulas or a lot of formatting, you may experience similar memory problems when you attempt to copy and paste information.
WorkaroundsTo work around this problem, do any of the following:
Reset the last cell by deleting excess rows and columns
Use the following macro to clear blank cellsWARNING: ANY USE OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
CAUTION: This macro will delete ALL cell contents (formats, notes, and defined names) that do not have a physical entry within the cell. NOTE: The ERROR(FALSE) and ECHO(FALSE) functions in cells A2:A3 are not required for this macro to run correctly; however, these functions do significantly increase performance. To create an example to try the above procedures, do the following:
NOTE: If you are using Microsoft Excel version 3.0 or earlier, H25 will remain the last cell address until you close the file and reopen it. In versions 4.0a and 5.0, you can Clear All and then Save; it is not necessary to reopen the file.
REFERENCES"Function Reference," version 4.0, pages 57, 122, 135, 364 "Function Reference," version 3.0, pages 33, 62, 68, 201
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |