Consulting

Results 1 to 12 of 12

Thread: Force a doc to always open in reading pane view

  1. #1

    Force a doc to always open in reading pane view

    Hi folks,

    Do you know is it possible using VBA or otherwise to force a document to always open in reading pane view, independant of their user settings?

    Thanks,

    Ger

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Would that be in Office 2003?
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  3. #3
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    I really hate people overridong my personal settings and don't know why you would want to do this but you you can put code in the documents's opene vent ..[vba]Private Sub Document_Open()
    Me.Windows(1).View.ReadingLayout = True
    End Sub[/vba]
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  4. #4
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    I have the same problem. Every document I open, opens as Reading Layout and I always have to change it to Print Layout. Everyone in my department has the same problem. How do you get it to switch the default to Print Layout?

  5. #5
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    I agree with Tony. The issue however, is documents that are sent to and from others.

    The solution is to make code in the Document_Open event of your normal.dot. That way, whatever settings YOU want will always occur, regardless of whatever someone else has done. Well that is not strictly true, you could code a way around it. Nevertheless, put this in the Document_Open event of your normal.dot. All opening document will open in PrintLayout. Oh, but as version was not mentioned...this is may not work for some versions of Word. Syntax changes. The solution is to simply record a macro changing it to Print View, and then take THAT code and put it in the Document_Open event of normal.dot.
    [vba]ActiveWindow.View.Type = wdPrintView[/vba]

  6. #6
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    Quote Originally Posted by spaz9876
    I have the same problem. Every document I open, opens as Reading Layout and I always have to change it to Print Layout. Everyone in my department has the same problem. How do you get it to switch the default to Print Layout?
    That is the opposite of the original question and easily dealt with.

    Under Tools > Options > General (tab), uncheck "Allow starting in Reading Layout"
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  7. #7
    VBAX Regular
    Joined
    Jun 2005
    Posts
    87
    Location
    Oh my gosh I can't believe it was that easy. - Thank you Tony

  8. #8
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by TonyJollans
    I really hate people overridong my personal settings and don't know why you would want to do this
    Amen to that buddy!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  9. #9
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Which is precisely why just about the only code I have in my normal.dot (rather than in either a document template, or a global template) is the code to make darn sure than documents DO open in MY settings.

  10. #10
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by fumei
    Which is precisely why just about the only code I have in my normal.dot (rather than in either a document template, or a global template) is the code to make darn sure than documents DO open in MY settings.
    No need for that from my site...Our IT desk doesn't know a local Normal.dot overides the one in (Shared) Workgroup templates. (So my customizations are still mine and mine alone)
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  11. #11
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location

  12. #12
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Quote Originally Posted by fumei
    Are you the computer and am I the little yellow nono??
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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