LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Tom Ogilvy, follow up for "coding for footer"


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SORT a column of Texts to follow another "EXACT" order F. Lawrence Kulchar Excel Discussion (Misc queries) 6 September 17th 08 09:14 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Why can't I record "flag for follow up" as a Macro? Richard Hocking Excel Discussion (Misc queries) 7 September 14th 06 11:47 AM
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? StargateFan[_3_] Excel Programming 10 October 6th 05 01:18 PM
Modify ? Tom Ogilvy "count visible filter records" Todd F. Excel Programming 1 June 11th 04 09:03 PM


All times are GMT +1. The time now is 05:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"