GET.CELL Command Cannot Detect an Automatic Page Break

Last reviewed: November 3, 1994
Article ID: Q71361
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0, 5.0

SUMMARY

GET.CELL is a macro function designed to return particular information about a given cell. The "Microsoft Excel Function Reference" indicates that

   =GET.CELL(27)

returns the following numbers depending on whether a page break occurs at that cell:

   0 = No break
   1 = Row
   2 = Column
   3 = Both row and column

MORE INFORMATION

Microsoft Excel detects only manual page breaks, not automatic page breaks. Manual page breaks are set by using either the function =SET.PAGE.BREAK() or by choosing Set Page Break from the Options menu. Automatic page breaks are set by Microsoft Excel and cannot be removed. If an automatic page break occurs at the selected cell, Microsoft Excel returns a 0 (zero) even though there is a page break.

Additionally, =GET.CELL(27) does not detect where a print area breaks the page.

Note that in Microsoft Excel verison 5.0, you can use the PageBreak property in a Visual Basic procedure to detect an automatic page break.

REFERENCES

"Function Reference," version 4.0, page 191-194

"Microsoft Excel Function Reference," version 3.0, pages 103-105


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.0 3.00 4.0 4.00 5.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 3, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.