Microsoft KB Archive/121945

{|
 * width="100%"|

XL5: Help Example Wrong for PrintTitleRows/PrintTitleColumns

 * }

-

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.