Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reopening a resized window: make it open with new size automatical
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? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Reopening a resized window: make it open with new size automatical
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 modules 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. "Miss Chievous" wrote: 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? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to make word open behind the currently active window? | Microsoft Word Help | |||
note pad docs losing size upon reopening | Microsoft Word Help | |||
Can you make the date field on a fax coversheet update automatical | Microsoft Word Help | |||
How to change default window open size? | Microsoft Word Help | |||
How do I open a window full size rather than minimized? | Microsoft Word Help |