Reopening a resized window: make it open with new size automatical

M

Miss Chievous

This is a general windows question:

A window is opened, then resized, then closed. Everytime it is opened it is
the old size, necessitating repeated resizing. Sometimes holding down the
Shift key while closing works (upon reopening it is the new size) but often
this does not work.

Any possibilities?
 
S

StevenM

To: Miss Chievous,

I hadn't thought about that until you brought it up. I often re-size my Word
windows for one thing or another, but when I re-open them I wish they would
open maximized rather than where I left off. So I've add the following macro
to my Normal template.

'
' Every time a document is open based on this template
' The Window is Maximized & the Document is in Print View.
'
Sub AutoOpen()
Application.WindowState = wdWindowStateMaximize
ActiveWindow.View.Type = wdPrintView
ActiveWindow.View.Zoom.PageFit = wdPageFitBestFit
End Sub

Steven Craig Miller

P.S.
To Install a Macro:
Go to VBA editor via Tools > Macro > Visual Basic Editor (or Alt-F11).
Open the Project Explorer (if not open) , the shortcut key is Ctrl-R.
It will have the name “Project.â€
Click on the template where you would like to store your macro.
For example click on “Normal.â€
Insert a new Module with: Insert > Module.
It should have the name Module1.
(You can re-name your new module now or later by clicking on F4, this should
bring up the Properties Window. In the field following “(name)†you can
change the module’s name. Close the Properties window, now the new Module
should have a new name.)
The code window should now be open.
The code window has General & Declarations at the top.
If it is not open, double click on the Module.
Cut and past your macro into the code window.
You can store more than one macro in a module.
To run your macro, go back to your document and click on Alt-F8.
Alt-F8 will bring up the macro menu from which you can pick your macro and
run it.

P.S.S.
This macro is an "Auto-" macro, there is no need to run it. It runs every
time a document is opened.
 
J

Jay Freedman

On Sat, 28 Jun 2008 10:11:00 -0700, Miss Chievous <Miss
This is a general windows question:

A window is opened, then resized, then closed. Everytime it is opened it is
the old size, necessitating repeated resizing. Sometimes holding down the
Shift key while closing works (upon reopening it is the new size) but often
this does not work.

Any possibilities?

In order to get the new size to "stick" you have to save the file. Also, if you
haven't made any edits in the document, Word won't save even when you tell it
to; so you have to do something, such as insert a space and then delete it, to
force the save to happen.

To do something that will have an effect on new documents, read
http://www.word.mvps.org/FAQs/General/SaveViewAndZoom.htm.
 

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