If ActiveDocument.ActiveWindow _ .WindowState = wpsWindowStateNormal Then _ ActiveDocument.ActiveWindow.WindowState = wpsWindowStateMaximize