XL5: Help Example Wrong for PrintTitleRows/PrintTitleColumnsLast reviewed: September 12, 1996Article ID: Q121945 |
The information in this article applies to:
SYMPTOMSMicrosoft 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 STATUSThis information has been corrected in Visual Basic Help in Microsoft Excel version 5.0c.
MORE INFORMATIONTo find the PrintTitleRows method in Help, choose the search button in Visual Basic Help, and type:
PrintTitleRowsTo find PrintTitleColumns, type "PrintTitleColumns" (without the quotation marks).
REFERENCESMicrosoft Excel 5.0 Visual Basic Help "Excel 5 Visual Basic for Applications Reference," Microsoft Press, page 513
|
KBCategory: kbprg kbcode kbdocerr kbmacro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |