Well you can start with your auto_open macro. That will automatically run when your that excel file is open. You could create make an input box pop up, input the number of sheets and what you need to add to the Header. Here is an example.
It's not super fast put it adds the sheets and places header info.VB Code:
Public Sub auto_open() Sheets("Sheet1").Activate Application.ScreenUpdating = False ctr = 1 Number = InputBox$("How many sheets do you need?") Entry = InputBox$("Put header title here") Number = Number - 1 While ctr <= Number With ActiveSheet.PageSetup .CenterHeader = "&P of &N" .LeftHeader = Entry .RightHeader = "&D" & Chr(10) & "&T" End With ActiveSheet.DisplayAutomaticPageBreaks = False Sheets.Add ctr = ctr + 1 Wend End Sub
~Queen B




Reply With Quote