• Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    Author
    Topic
    #378856

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #628560

      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.

    • #628823

      (Edited by carbonnb on 03-Nov-02 12:00. Added W97 Information)

      This had me stumped for a bit, but I finally figured it out.

      All you need to do is run this VBA command:

      Selection.Orientation = wdTextOrientationVerticalFarEast

      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 sad

      • #628826

        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

        • #628828

          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 .

          Cheers,

        • #628879

          (Edited by carbonnb on 03-Nov-02 20:11. Added Version info)

          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. grin

          I have also put it on my web site http://www3.sympatico.ca/carbonnb/dwt/index.html%5B/url%5D 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 sad

          • #629555

            please 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

            • #629559

              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.

              sorry Sorry sad

            • #629580

              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

            • #629581

              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.

            • #629591

              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,

            • #629593

              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.

            • #629596

              Wow. I can’t understand why we’d have different behavior on the templates. I don’t have access to Word 2000 right now; I’ll double check later. But in Word 97, I was able to put your template in the templates folder, load it through Tools/Templates & Add-ins…, open the template directly, & view the macros. I can view the macros either by going into the VBE, or, if I use Alt+F8, I must select the template in the “Macros in” box. In the latter case, I need to make sure that I don’t select the same template that is listed as global; i.e. your template would be listed both as “RotateDoc.dot” & “RotateDoc.dot (global template)”.

            • #629606

              Very strange.

              Here’s what I just did.

              Installed the RotateDoc.dot as an Add-In
              Tried to view the code. No Luck
              I then opend the template directly (File|Open) and then went to look at the code and low and behold, I could get into it.

              So I guess I stand corrected, you don’t need to unload the Add-In first, you just need to open it. I must never have tried to open an add-in without unloading it first.

              Learn something new everyday exclamation

              BTW, this is W2K SR1

            • #629742

              Phil,

              On my way home tonight, while working on an Access Add-In, I realized why I though you have to unload the Add-In before looking at the code.

              In Access, if you install an Add-In, and then wish to look at the code, you have to unload the Add-In, restart Access and open the Add-In using File|Open before you can look at the code.

              So I was just getting my VBA hosts all mixed up.

            • #629755

              Ahhh, guilty of thinking Microsoft would be logical. Thinking that because Microsoft developed two applications..that they are supposed to be compatible…that such behavior would be consistent…that… laugh. Well, at least you know more than one application. grin

      • #628915

        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. grin

        • #628925

          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.

          • #629188

            clapping Simply amazing, Bryan, Andrew, Phil and Rob

            You have no idea how much hair I lost confused 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.

    Viewing 1 reply thread
    Reply To: Page Setup Portrait Rotated 90 degrees (2000 SR 1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: