Re: OddAndEvenPagesHeaderFooter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



ccrites@xxxxxxxxxxx was telling us:
ccrites@xxxxxxxxxxx nous racontait que :

For my section breaks, I am only using 'wdSectionBreakNextPage' and
there is one after each of the first 6 pages before I try to run this
code on the 7th page. The line of code that is giving me problems
comes directly after one of those breaks (at the end of the 6th) and I
have tried

Selection.Sections(1).PageSetup...,
ActiveDocument.Range(Start:=Selection.Start,
End:=ActiveDocument.Content.End).PageSetup...
and
ActiveDocument.Sections(Section#).PageSetup...

and nothing seems to be working. Every single one of these will grab
the entire document and add a second blank page to sections where the
'OddAndEvenPagesHeaderFooter' setting is True. However, it skips
those that are set to false. What am I doing wrong here?

As I wrote before... Have you tried using
.LinkToPrevious = False
immediately after inserting the new section, but before making any changes
to the new section?

If you do try, and it still does not work, can you post the exact code you
used and a description of the document content before executing the code?

_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org


.



Relevant Pages

  • Re: OddAndEvenPagesHeaderFooter
    ... ccrites@xxxxxxxxxxx nous racontait que: ... 'OddAndEvenPagesHeaderFooter' setting is True. ... just started using my head on this one... ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.general)
  • Re: Saving word Pages as images
    ... Anne Troy nous racontait que: ... But, be aware that this will not grab footer, header, footnotes... ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.general)
  • Re: VBA code to position a frame object...
    ... Bill Foley nous racontait que: ... I haven't been able to accomplish this yet. ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.general)
  • Re: Form Automation
    ... mlevy86@xxxxxxxxx nous racontait que: ... # in attendance: # of members in attendance: ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.beginners)
  • Re: Run-time error 4605
    ... jj nous racontait que: ... > I have a template that has been working in word 97 perfect. ... But I somehow can't get that ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.general)