Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello Tom, Thank you for reply. I am wondering what "GROUP" you mean. I found the post below. They talked about your old post. But the link does not work any more. Based on what I found,I tried to use sheets.select, but I even can not pass compiling. I know I am so new for excel programming. Any comments? Public Sub tester() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets With ws.PageSetup .LeftHeader = "&A" .LeftFooter = "Page &P of &N" End With Next ws sheets.select End Sub Thanks. Kathy This is the post I found: I didn't find much searching for information about grouping sheets, or creating a list based on grouped sheets. The one article I did find was fairly helpful. It was posted by Tom Ogilvy and showed how to group sheets based on criteria in the sheetname. Found at: http://groups.google.com/groupshl=en...th=c591933a15e... This is my original post. Hello, I have 120 worksheets in one excel file. I set print area in some sheets, some not. I use macro to set up footer. Page number for the first 25 is right. Then the next page number becomes 4,5,6,7...... .. After several correct sequent pages, the page number is wrong again. And repeat this again and again..... Any comments?? Thanks. Code is following: Public Sub tester() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets With ws.PageSetup .LeftHeader = "&A" .LeftFooter = "Page &P of &N" End With Next ws End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SORT a column of Texts to follow another "EXACT" order | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Why can't I record "flag for follow up" as a Macro? | Excel Discussion (Misc queries) | |||
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? | Excel Programming | |||
Modify ? Tom Ogilvy "count visible filter records" | Excel Programming |