Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Please take a look at the Word file in the attached zip file. I do not understand how this effect is achieved. Would be thankful to anyone who can enlighten me on how it is achieved.

    I actually substituted text into a file I received from someone, and hence do not know how it was created. Note that the page setup and the Preview in the Page Setup as also the icons are all changed. And that the text is on the main page and not in a text box.
    Attached Files Attached Files

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    It's got me stumped too. Is it possible it was created using a different language keyboard or software version?

    Whatever else it may be. It appears to be the solution to getting a landscape page in a document with portrait headers and footers. This alone makes it worthy of further investigation.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    <P ID="edit" class=small>(Edited by carbonnb on 03-Nov-02 12:00. Added W97 Information)</P>This had me stumped for a bit, but I finally figured it out.

    All you need to do is run this VBA command:
    <pre>Selection.Orientation = wdTextOrientationVerticalFarEast</pre>

    The headers and footers will remain "normally" rotated, but the text will change.

    If you want a specifc section to be rotated then you will need to surround it with Section (Next Page) breaks and select AT LEAST one character in the section up to the entire section but NOT including the section break(s) and then run the VBA command.

    If you don't select at least one character, then the orientation will be changed for the entire document. If you select the Section break then the sections on either side (before and after) of the section break will be changed.

    It also changes the page orientation to landscape, so if you want all the pages in portrait mode, you will need to change the page orientation of the section in the Page Setup dialog.

    Have a look at the two docs that are in the attached zip.

    Thanks for a great Sunday morning challenge.

    P.S. I just checked this out in W97 and it doesn't work <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    Attached Files Attached Files
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  4. #4
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Forgive the stupid question, but from where (or how) do you run the code? Your attachment lists no macros in the VBA window.

    Regards

    Rob
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Hi Bob:
    I noticed that Bryan isn't online. If you open a document:
    1. Press Alt+F11 to opent the VBE.
    2. Press Ctrl+G to open the immediate window.
    3. Paste the code in there.
    4. Put the cursor at the end of the line of code & press <enter>.

    Cheers,

  6. #6
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    <P ID="edit" class=small>(Edited by carbonnb on 03-Nov-02 20:11. Added Version info)</P>Rob,

    Since you felt your question was stupid, even though it really wasn't (The only stupid question is the unasked one), and posted it anyway and Phil so graciously answered it, I'll go one better and post an Add-In that will rotate the section of the Word document that you are in.

    Just save and unzip it to your Word Startup directory and it will always be available for you to amaze and confuse your colleagues. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    I have also put it on my web site http://www3.sympatico.ca/carbonnb/dwt/index.html for posterity sake. I will also post any revised (bug fix) versions there.

    I hate it when I post and as soon as I do, realize I forgot something very important.

    This Add-In will ONLY work in Word 200 (or better I'm guessing) and not in Word 97 <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    Attached Files Attached Files
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  7. #7
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Nice one, Bryan! I had no idea that Word has this native ability. Spent lots of time trying to make tables & text boxes whose boundaries exceeded the page size. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  8. #8
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Thanks Phil.

    I had NO idea that Word had the capability either. But some thanks need to got to Rajesh. If it wasn't for the original post, I would never have bothered to look for it.

    Hopefully it works for everybody using W2K or better.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  9. #9
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> Simply amazing, Bryan, Andrew, Phil and Rob

    You have no idea how much hair I lost <img src=/S/confused.gif border=0 alt=confused width=15 height=20> trying to figure that one out. I left office for a weekend which extended into Monday. And now I actually have an additional button in Word which can do that for me at will!

    I had no idea that it was so relevant, but I omitted to mention that the document I got had Japanese text interspersed with English and I believe was created in Word Japanese version, running under Windows Japanese version. Japanese text is sometimes presented and read top to bottom, I am told. This feature is intended to make that possible.

    How come the Redmond guys never figured that the same feature could help so handily in getting portrait headers on landscape pages? I had to do that painfully earlier by inserting header text within text boxes with text direction changed.

  10. #10
    New Lounger
    Join Date
    Sep 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    <img src=/S/please.gif border=0 alt=please width=31 height=23> Your macro was (nearly) a solution to a problem I've had for a while. I tried it and it works great, except .... I'd like the text rotated the other way. I tried to open the macro to see if I could change the command but it was locked. Is there some way to either unlock it, or could you post a rotate in the other direction? I'd greatly appreciate it.

    Thanks,

    Dave

  11. #11
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Dave,

    The project isn't locked. You will have to unload the Add-In the open the template using File|Open.. Then you should be able to view the code.

    As for rotating the text the other direction, I don't think you can.

    It uses FarEast text alignment, which IIRC starts at top right and moves down and then to the left.

    So I think you are out of luck.

    <img src=/S/sorry.gif border=0 alt=sorry width=15 height=15> Sorry <img src=/S/sad.gif border=0 alt=sad width=15 height=15>
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  12. #12
    New Lounger
    Join Date
    Sep 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Ahhhhhhhh. That makes sense. Another quick question: is it possible to change the layout of embedded figures in a section to match the Far East orientation (no pun intended)?

    Dave

  13. #13
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Not as far as I know.

    The only way that I know of is rotating the original imge in an image editor.

    I haven't really check it out in depth, just a quick look. But then again, until the beginning of this thread I dind't think you could rotate a page without resorting to textboxes or tables.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  14. #14
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Hi Bryan:
    Just a question on your instructions on viewing or editing the macro. I've always found that you can view the macros in an add-in without unloading it. You just have to open it directly. Is this your experience also, or do you find that you must unload it first?
    Cheers,

  15. #15
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    I've always had to unload them (Tools|Templates and Add-Ins.. and uncheck the one I want to look at) and then use File Open to actually open it.

    The only time I can look at the macros when the template is loaded as an add-in is if I open the template first and then check the box in the Add-Ins dialog.
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •