$PREINITWKS

Purpose:

A macro that automatically executes just befor the Worksheet is loaded

Syntax:

#DEFINE $PREINITWKS body

 

body - an expression to execute when the Worksheet is loaded.

Example:

#define $preinitwks setwsy(0.1, 1)

 

Defines $PREINITWKS to create a 10% upper boarder in the Worksheet. Because the $PREINITWKS macro is saved with the Worksheet, the border will be added when the Worksheet is loaded.

Remarks:

$PREINITWKS executes before any Windows are drawn. See $INITWKS to execute a macro after the Windows have been drawn.

 

Any valid expression, including SPL routines, can be assigned to $PREINITWKS.

 

See $DEINITWKS for a macro that executes when a Worksheet is unloaded.

See Also:

#DEFINE

$DEINITWKS

EXPORTWORKSHEET

$INITWKS

SAVEWORKSHEET