Page X of Y in Worksheet
Put this code in the Thisworkbook object, this will update the text each
time you print the file. Replace [A1] with the cell address you want to use
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim X As Integer, Y As Integer
Y = ThisWorkbook.Sheets.Count
For X = 1 To Y
Sheets(X).[A1].Value = "Sheet " & X & " of " & Y
Next X
End Sub
Paul D
"G.Hott" wrote in message
...
: Good morning! I'm really hoping someone can assist me.
: I have a worksheet with a title block in rows 1-13. This title block
repeats
: on each sheet. I would like for a cell to show when printed "Sheet 'x' of
: 'y'". Is this possible?
:
: --
: G. Hott
|