XL5: Help Example Wrong for PrintTitleRows/PrintTitleColumns

ID: Q121945

5.00 WINDOWS kbprg kbcode kbmacro kbdocerr

The information in this article applies to:

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

Version           : 5.00
Platform          : WINDOWS

Last Reviewed: September 14, 1996