EXCEL_SETMARGIN

Syntax

Example

Description/Remarks

EXCEL_SETMARGIN margin_type, margin_value

EXCEL_SETMARGIN 40, 1

 

This formula sets the top margin to 1 inch.

 

EXCEL_SETMARGIN 38, 0.75 : EXCEL_SETMARGIN 39, 0.75

 

This formula sets both the left and right margins to 0.75 inches.

 

See also: Creating a file in Microsoft Excel format.

This command allows you to set any of the page margins for printing the new file created by the EXCEL_CREATE command.  By default, all four margins are set to 1.5 inches.

The following parameters are required when setting the margins:

Margin_type

Valid settings for this option are:

38 : Left margin

39 : Right margin

40 : Top margin

41 : Bottom margin

Margin_value

This number should specify the desired margin width in inches.