XL5: Help Example Wrong for PrintTitleRows/PrintTitleColumns

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.


REFERENCES

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

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

Keywords :
Version : 5.00
Platform : WINDOWS
Issue type :


Last Reviewed: September 15, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.