Microsoft Office Excel has a limit of 1026 manual horizontal page breaks for a worksheet. In Excel 2007, a limit of manual page breaks is 1023. If you run a macro that attempts to exceed this limit, you may receive the following run-time error message:
Not Enough Memory.
Then, you may receive the following error message:Run-time error '1004':
Application-defined or object-defined error
With Microsoft Excel 2002, you receive the following error message:Application-defined or object-defined error
Run-time error '1004':
This action exceeds the number of page breaks you can manually add to a worksheet. A worksheet can contain up to 1026 horizontal page breaks.
This action exceeds the number of page breaks you can manually add to a worksheet. A worksheet can contain up to 1026 horizontal page breaks.