Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing date field from custom footer...

Status
Not open for further replies.

z07924

IS-IT--Management
Feb 18, 2002
122
GB
I have 1000's of excel files to convert to PDF. All these files have date field in the footer section.
How do I remove them (or prevent update to date) from the file before doing the conversion...Any help would be appreciated. thanks in advance.
 
In VBA you couls use:

Worksheets("Sheet1").PageSetup.CenterFooter = ""

For example.


********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
 
Thanks...the following code returns wrong number of sheets...(there are only 10 sheets in this workbook..but it returns 12)

For i = 1 To ActiveWorkbook.Sheets.Count
Sheets(i).PageSetup.LeftFooter = ""
Next i

any idea / any other way opf doing this? thanks.
 
Sounds as though there are some sheets hidden.

In the "Project Explorer" pane of your VBA IDE are all the sheets that you would expect to see there, or are there more sheets?

The ActiveWorkbook.Sheets.Count will count all the sheets in the workbook, even the ones that are "xlSheetVeryHidden". So there may be a sheet that you cannot see a tab for, nor view using the "Format-Sheet-Unhide".

********************
What's the best way to get the answers you need?? See FAQ222-2244 for details!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top