XL5: Help Example Wrong for PrintTitleRows/PrintTitleColumns

Last reviewed: September 12, 1996
Article ID: Q121945
The information in this article applies to:
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

Microsoft Excel version 5.0 Visual Basic Help and page 513 of the Microsoft Press "Microsoft Excel 5 Visual Basic for Applications Reference," contain incorrect code in the example topic for the PrintTitleRows and PrintTitleColumns methods.

The following is the incorrect sample code for both methods:

   ActiveSheet.PageSetup.PrintTitleRows = ActiveSheet.Rows(3)
   ActiveSheet.PageSetup.PrintTitleColumns = ActiveSheet.Columns("A:C")

The correct code is as follows:

   ActiveSheet.PageSetup.PrintTitleRows = ActiveSheet.Rows(3).Address
   ActiveSheet.PageSetup.PrintTitleColumns = _
   ActiveSheet.Columns("A:C").Address

STATUS

This information has been corrected in Visual Basic Help in Microsoft Excel version 5.0c.

MORE INFORMATION

To find the PrintTitleRows method in Help, choose the search button in Visual Basic Help, and type:

   PrintTitleRows

To find PrintTitleColumns, type "PrintTitleColumns" (without the quotation marks).

REFERENCES

Microsoft Excel 5.0 Visual Basic Help "Excel 5 Visual Basic for Applications Reference," Microsoft Press, page 513


KBCategory: kbprg kbcode kbdocerr kbmacro
KBSubcategory:

Additional reference words: 5.00 docerr print titles rows columns
on-line online error documentation



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: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.