The information in this article applies to:
SYMPTOMS
In Microsoft Excel version 5.0, if you use the Set Print Titles
command (with Microsoft Excel 4.0 menus displayed) to set a print
title while the macro recorder is running, one of the following
occurs:
-or- -or- CAUSEIf you choose Set Print Titles from the Options menu with the Microsoft Excel 4.0 menus displayed, while the macro recorder is running, a command similar to the following is recorded:
You receive a syntax error when you run this procedure.If you select a row or column on the worksheet before you choose Set Print Titles, and you only enter data in the Title For Columns box, an hourglass pointer appears and Microsoft Excel stops responding when you choose OK in the Set Print Titles dialog box. If you only enter data in the Title For Rows box, you receive a GP fault when you choose OK in the Set Print Titles dialog box. Note that these behaviors do not occur when you record the macro using the Microsoft Excel 4.0 Macro language. WORKAROUNDSMicrosoft provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This Visual Basic procedure is provided 'as is' and Microsoft does not guarantee that it can be used in all situations. Microsoft does not support modifications of this procedure to suit customer requirements for a particular purpose.To avoid the behaviors described above, use the following Visual Basic procedure to set print titles on the active worksheet:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in a later version of Microsoft Excel. REFERENCESFor more information about Printing Titles On Multiple Pages, choose the Search button in Help and type: titles Additional query words: err msg gpf hang
Keywords : |
Last Reviewed: September 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |