» Change text in header when printing using VBA in Microsoft Excel
CATEGORY - Printing in VBA
VERSION - All Microsoft Excel Versions
How Change text in header when printing .
Place the code below into a regular Module.
Sub VariableRow()
Dim intCount As Integer, intCounter As Integer
Range("A1").Select
intCount = ExecuteExcel4Macro("INDEX(GET.DOCUMENT(50),1)")
Sheet1.PageSetup.PrintTitleRows = "1:1"
For intCounter = 1 To intCount
Range("A1").Value = "RepetitionLine " & intCounter & ". Page"
ActiveSheet.PrintOut from:=intCounter, to:=intCounter
Next intCounter
Range("A1").Value = "RepetitionLine"
End Sub
Book Store:
Recommended Books:
- Definitive Guide to Excel VBA
- The Financial Numbers Game: Detecting Creative Accounting Practices
- Learn MS Excel 2002 VBA/XML Programming
- Final Accounting: Ambition, Greed and the Fall of Arthur Andersen
- Managerial Accounting: Tools for Business Decision Making, WebCT, 2nd Edition
- AWAKEN THE GIANT WITHIN : HOW TO TAKE IMMEDIATE CONTROL OF YOUR MENTAL, EMOTIONAL, PHYSICAL AND FINANCIAL
No comments have been submitted.

