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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

page footer

Status
Not open for further replies.

cluser

Technical User
Jun 19, 2005
38
US
I have a page footer, I only want its content shown on odd page, but not even page, how can I do that?

Thanks a lot
 
In the footer's On Format event, put this:

Code:
Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer)
    If Page Mod 2 = 0 Then Cancel = True
End Sub

it determines if the page is odd or even by using the built-in "PAGE" function and the "MOD" function. If you're not familiar with them, look 'em up :))

Hope this helps.

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244. Basics at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top