F
Francis Hookam
Word 2001
In XL, to maximise the window but leaving 100 pixels at the right side and
50 at the bottom to leave a view of the desktop, I use
Public Sub FullSizeWindow()
Application.ScreenUpdating = False
Const FREERIGHT = 100
Const FREEBOTTOM = 50
ActiveWindow.WindowState = xlMaximized
ActiveWindow.Height = ActiveWindow.Height - FREEBOTTOM
ActiveWindow.Width = ActiveWindow.Width - FREERIGHT
End Sub
Copying the macro into Word and it runs but simple makes the window smaller
by 100x50 each time. This seems to be because
ActiveWindow.WindowState = xlMaximized
does not work in Word as it does in XL
Is there a Word instruction to enlarge the window to the size of the screen
- the zoom box merely toggles between some predetermined width, which is not
wide enough, and full depth?
Thank you
Francis Hookham
In XL, to maximise the window but leaving 100 pixels at the right side and
50 at the bottom to leave a view of the desktop, I use
Public Sub FullSizeWindow()
Application.ScreenUpdating = False
Const FREERIGHT = 100
Const FREEBOTTOM = 50
ActiveWindow.WindowState = xlMaximized
ActiveWindow.Height = ActiveWindow.Height - FREEBOTTOM
ActiveWindow.Width = ActiveWindow.Width - FREERIGHT
End Sub
Copying the macro into Word and it runs but simple makes the window smaller
by 100x50 each time. This seems to be because
ActiveWindow.WindowState = xlMaximized
does not work in Word as it does in XL
Is there a Word instruction to enlarge the window to the size of the screen
- the zoom box merely toggles between some predetermined width, which is not
wide enough, and full depth?
Thank you
Francis Hookham