Orientation page field.

  • Thread starter Thread starter y
  • Start date Start date
Y

y

Hi all,

how can I recognize if the current page layout is set to "landscape"?

I need this information to manage top-bar and foot-bar (this time I don't actually remember the
exact terms for the objects I have in mind, I'm not using the english version of Word)

The foot-bar is the space where Word automatically put the page number, the top-bar is the related
one on the top of the page.

Anyway, I would manage the number of pages by hand in pages set to landscape with a text box. I
would put the field PAGES but Word should not display the PAGE info in the same page where I
manually manage the number of the page.

Shortly ;), which is the field?

Thanks, Alex.
 
You need to check the PageSetup object -- it has an Orientation property,
which may be portrait or landscape. This object doesn't belong to the page
as such but to the Section containing the page. You can select something in
the page then use Selection.PageSetup.Orientation, or
ActiveDocument.Sections(n).PageSetup, amongst other methods, depending on
how your code works.

foot-bar and top-bar are called 'footer' and 'header' in English.
 
Jezebel said:
You need to check the PageSetup object -- it has an Orientation property,
which may be portrait or landscape. This object doesn't belong to the page
as such but to the Section containing the page. You can select something in
the page then use Selection.PageSetup.Orientation, or
ActiveDocument.Sections(n).PageSetup, amongst other methods, depending on
how your code works.

foot-bar and top-bar are called 'footer' and 'header' in English.

Thank you Jez,

does your suggestion need VBA? I would solve the problem with Word's fields. I'm not feeling with
VBA expecially in Word's environment...

Thanks, Alex.
 

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

Back
Top