Article ID: 185507
Article Last Modified on 6/18/2005
ActiveWindow.WindowState = wdWindowStateMaximizedoes not work properly on the Macintosh.
Sub AutoExec()
' Adjust the delay on the second macro with TimeValue.
Application.OnTime when:=Now + TimeValue("00:00:03"), Name:="MadMax"
End Sub
NOTE: You must name the second macro MadMax:
Sub MadMax()
With ActiveWindow
If System.OperatingSystem = "Macintosh" Then
horz = System.HorizontalResolution
vert = System.VerticalResolution
.Width = horz - 3
.Height = vert - 85
End If
End With
If CommandBars("Drawing").Visible = True Then
CommandBars("Drawing").Visible = False
CommandBars("Drawing").Visible = True
End If
End Sub
70991 WD97: Auto Macros in Word
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: vba wdwindowstatenormal seekview maximize monitor display word 98 fill screen larger full view
Keywords: kbhowto kbconversion kbmacroexample kbconvert KB185507