Inserting landscape pages; formatting headers/footers

C

cmbrown

In my code, I:
insert two section breaks (now three sections)
format headers and footers in section 3: no link to previous
move up to section 2
make it landscape
format headers footers: no link to previous
format headers footers: tabs

This all works fine until the last step. Even though my cursor is in the
proper (i.e. the landscape page) header, and turning off link to prev works,
when I try to do anything (in this case set some tabs) the cursor jumps up to
the header in the previous section (which is portrait).

I can't figure it out, you can step through the code and see the cursor in
the landscape page header, you can see the proper link to prev get turned
off, but then, as soon as it executes the next line of code (in this case
format tabs), the cursor jumps up to the previous section. I have tried other
formatting things, like selecting all, inserting text, etc., but no matter
what I do the cursor jumps to the prev section. I have even tried exiting the
header and going back in, no luck.

Any help would be most appreciated!
Thanks,
Chris
 
J

Jean-Guy Marcil

cmbrown was telling us:
cmbrown nous racontait que :
In my code, I:
insert two section breaks (now three sections)
format headers and footers in section 3: no link to previous
move up to section 2
make it landscape
format headers footers: no link to previous
format headers footers: tabs

This all works fine until the last step. Even though my cursor is in
the proper (i.e. the landscape page) header, and turning off link to
prev works, when I try to do anything (in this case set some tabs)
the cursor jumps up to the header in the previous section (which is
portrait).

I can't figure it out, you can step through the code and see the
cursor in the landscape page header, you can see the proper link to
prev get turned off, but then, as soon as it executes the next line
of code (in this case format tabs), the cursor jumps up to the
previous section. I have tried other formatting things, like
selecting all, inserting text, etc., but no matter what I do the
cursor jumps to the prev section. I have even tried exiting the
header and going back in, no luck.

I suspect that this is linked to the fact that you are using the Selection
object.
Try with a Range object instead.

Another solution would be to use an AutoText entry to insert a new landscape
section.

In any case, without seeing your code, it is difficult to offer more...


--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top