AppMinimize, AppMinimize()

Syntax

AppMinimize [WindowName$] [State]

AppMinimize([WindowName$])

Remarks

In Windows, the AppMinimize statement minimizes or restores the specified application.

Argument

Explanation

WindowName$

A string that matches the beginning of an application window name, as it appears in the title bar or Task List (Windows). If omitted, Word is assumed. For more information on WindowName$, see AppActivate.

State

Specifies whether to minimize or restore the application:

0 (zero) Restores the application.

1 Minimizes the application.

Omitted Toggles between restored and minimized states.

If the application is restored from an icon, it is activated. If the state does not change or if the application is minimized, the application is not activated.


Note

If an untrapped error occurs in a macro while Word is minimized, the macro halts and the Word icon flashes. When Word is restored, it displays a message indicating the nature of the error.

The AppMinimize() function returns the following values.

Value

Explanation

–1

If the application is minimized

0 (zero)

If the application is not minimized


On the Macintosh, AppMinimize and AppMinimize() are not available and generate errors.

See Also

AppMaximize, AppMove, AppRestore, AppSize, DocMinimize