Word Macro?

M

missjoy_3

I am trying to change the page orientation on a 10 page document, the catch
being that each page has a different orientation. I have tried numerous
ways, but nothing seems to work. If it helps, all but the first page are
tables.
 
C

Charles Kenyon

You have 10 orientations? Word only has two: portrait (default) and
landscape or sideways. You can have both in a document using section breaks
between them.

See http://addbalance.com/usersguide/sections.htm,
http://word.mvps.org/FAQs/Formatting/WorkWithSections.htm, and
http://word.mvps.org/FAQs/Formatting/LandscapeSection.htm.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
M

missjoy_3

Charles,
Thanks for the reply, but I think you miss read my post: what I am looking
for is some VBA script for a Word macro that will allow me to
change/control the page orientation in a 10 page document.
 
C

Charles Kenyon

I think you need to say more about how you would want this to work. Selected
page(s), a userform? What, exactly, are you trying to do? Saying you want
to control page orientation in a 10-page-document doesn't say what it is you
want to be able to do that you can't do with the File > Page setup dialog.
With enough specificity, someone here, not me - because I don't know
enough - may be able to give you a hand if not a full-blown macro.

Note that tables cannot be split across sections; that is, a single table
must all be in one section.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
M

missjoy_3

OK: I have a macro in Excel that (among other things) cuts a specified range
from each tab -in a 10 tab spreadsheet- and pastes them into the named Word
doc.

After they are pasted -and the rest of my Word macro adds the correct
Header/Footer and text to the first page- I need a script that will: select
the first table which is on page 2 (there is generally only one table per
page) and set that selected table to be 'landscape', then the same with page
3...
BUT
....page 4's table needs to have it's orientation as 'portrait', and so on
and so on. I need to select each table as I go through this process as some
of them might spread over two pages (but no more).

If there is anyone out there that has scripting experience with this, please
let me know.
 

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