SpreadCE Help
Macro command functions
[ ] indicates optional parameters
ACTIVATE([window_text], [pane_num])
ACTIVE.CELL()
ALERT(message_text, [type_num], [help_ref])
BEEP([tone_num])
CALCULATE.DOCUMENT()
CALCULATE.NOW()
CALLER()
CLEAR([type_num])
COLUMN.WIDTH([width_num], [reference], [standard], [type_num], [standard_num])
COPY([from_reference], [to_reference])
CUT([from_reference], [to_reference])
DATA.FORM()
DATA.SERIES([rowcol], [type_num], [date_num], [step_value], [stop_value], [trend])
DEREF(reference)
EDIT.DELETE([shift_num])
EVALUATE(formula_text)
FILL.DOWN()
FILL.LEFT()
FILL.RIGHT()
FILL.UP()
FONT.PROPERTIES([font], [font_style], [size], [strikethrough], [superscript], [subscript], [outline], [shadow], [underline], [color], [normal], [background], [start_char], [char_count])
FORMAT.NUMBER(format_text)
FORMULA(formula_text, [reference])
GET.OBJECT(type_num, [object_id], [start_num], [count_num], [item_index])
INPUT(message_text, [type_num], [title_text], [default], [x_pos], [y_pos], [help_ref])
INSERT([shift_num])
PASTE([to_reference])
REFTEXT(reference, [a1])
ROW.HEIGHT([height_num], [reference], [standard_height], [type_num])
SELECT([selection], [active_cell])
SELECTION()
SORT([orientation], [key1], [order1], [key2], [order2], [key3], [order3], [header], [custom], [case])
TEXTREF(text, [a1])
WORKBOOK.ACTIVATE(sheet_name)
WORKBOOK.DELETE([sheet_name])
WORKBOOK.INSERT([type_num])
WORKBOOK.NAME(old_sheet_name, new_sheet_name)
Macro command functions
ACTIVATE([window_text], [pane_num])
Specifies the workbook, sheet and/or pane that is to be active.
window_textThe workbook and/or sheet name. If this parameter is omitted then the active window is not changed.
pane_numFor a split window, specifies which pane is to be active. The possible values are:
1Upper or upper left.
2Upper right.
3Lower or lower left.
4Lower right.
If this parameter is omitted it then the active pane is not changed.
ACTIVE.CELL()
Returns a reference which represents the current position of the cursor on the active worksheet.
ALERT(message_text, [type_num], [help_ref])
Displays a message box containing the specified text. It returns TRUE if the OK button is pressed, otherwise FALSE.
message_textThe text to be displayed in the message box.
type_numThe type of message box to be displayed. The possible values are:
1A box containing a question mark icon and OK and Cancel buttons.
2A box containing an information icon and an OK button.
3A box containing an exclamation icon and an OK button.
If this parameter is omitted it defaults to 2.
help_refA reference to a Help topic (not currently implemented).
BEEP([tone_num])
Causes the computer to beep.
tone_numA number from 1 to 4 indicating which type of beep is to be produced (not currently implemented - all values will produce the same tone). If this parameter is omitted it defaults to 1.
CALCULATE.DOCUMENT()
Causes the current worksheet to be recalculated.
CALCULATE.NOW()
Causes all worksheets to be recalculated.
CALLER()
Returns information about the caller of the macro.
Macro called from:CALLER() returns:
user-defined functionreference of cell containing function call
user-defined function in array formulareference of array formula range
attached to control or drawing objectobject identifier
manually (control key combination)error value #REF!
CLEAR([type_num])
Simulates the Edit Clear menu option.
type_numThe type of information to clear from the current selection on the active worksheet. The possible values are:
1Clear all
2Clear formats
3Clear contents
4Clear comments
If this parameter is omitted it defaults to 3.
COLUMN.WIDTH([width_num], [reference], [standard], [type_num], [standard_num])
Simulates the Format Column menu options.
width_numThe new width of the columns. The width is measured in characters. This parameter is ignored if standard is TRUE or type_num is specified. If this parameter is omitted the width of the specified columns is not changed.
referenceThe columns whose width is to be changed. If this parameter is omitted it defaults to the current selection on the active worksheet.
standardSpecifies whether the columns are to be set to the standard column width. The possible values are:
TRUEThe columns are set to the standard width.
FALSEThe columns are not set to the standard width.
If this parameter is omitted it defaults to FALSE.
type_numSpecifies whether the columns are to be hidden, unhidden or automatically sized. This parameter is ignored if standard is TRUE. The possible values are:
1The columns are hidden.
2The columns are unhidden.
3The columns are set to the width of the longest displayed value.
If this parameter is omitted the columns will not be hidden, unhidden or auto-sized.
standard_numSpecifies the value to be used for the standard width. The width is measured in characters. If this parameter is omitted the standard width is not changed.
COPY([from_reference], [to_reference])
Simulates the Edit Copy menu option.
from_referenceThe cells that are to be copied to the clipboard. If this parameter is omitted it defaults to the current selection on the active worksheet.
to_referenceThe cells where the copied information is to be pasted. If this parameter is omitted then the cells are not pasted.
CUT([from_reference], [to_reference])
Simulates the Edit Cut menu option.
from_referenceThe cells that are to be cut to the clipboard. If this parameter is omitted it defaults to the current selection on the active worksheet.
to_referenceThe cells where the cut information is to be pasted. If this parameter is omitted then the cells are not pasted.
DATA.FORM()
Simulates the Format Data Form menu option.
DATA.SERIES([rowcol], [type_num], [date_num], [step_value], [stop_value], [trend])
Simulates the Edit Fill Series menu option.
rowcolIndicates whether the series is in rows or columns. The possible values are:
1Rows
2Columns
If this parameter is omitted it defaults depending on the shape of the current selection.
type_numThe way in which the series values change. The possible values are:
1Linear
2Growth
3Date
4Auto (not currently implemented)
If this parameter is omitted it defaults to 1.
date_numThe way in which the date values change. The possible values are:
1Day
2Weekday
3Month
4Year
If this parameter is omitted it defaults to 1.
step_valueThe number used to add to or multiply by the series value. If this parameter is omitted it defaults to 1.
stop_valueThe value at which to stop filling the series. If this parameter is omitted then the entire selection is filled.
trendIndicates whether to fill the series using trend values calculated from existing data. The possible values are:
FALSEDon't use trend values.
TRUEUse trend values (not currently implemented).
If this parameter is omitted it defaults to FALSE.
DEREF(reference)
Returns the values of cells in a reference. You should not need to use this function, as references are automatically converted to values where necessary when they are used in formulas.
referenceThe reference to the cells whose values you want.
EDIT.DELETE([shift_num])
Simulates the Edit Delete menu option.
shift_numThe way in which the cell deletion is to be processed. The possible values are:
1Shift cells left.
2Shift cells up.
3Delete entire rows.
4Delete entire columns.
If this parameter is omitted it defaults to 2.
EVALUATE(formula_text)
Returns the result of evaluating a formula.
formula_textThe formula to be evaluated.
FILL.DOWN()
Simulates the Edit Fill Down menu option.
FILL.LEFT()
Simulates the Edit Fill Left menu option.
FILL.RIGHT()
Simulates the Edit Fill Right menu option.
FILL.UP()
Simulates the Edit Fill Up menu option.
FONT.PROPERTIES([font], [font_style], [size], [strikethrough], [superscript], [subscript], [outline], [shadow], [underline], [color], [normal], [background], [start_char], [char_count])
Formats the cells in the selection on the current worksheet using the specified font attributes.
fontThe name of the font to be used.
font_styleThe style to be used. The possible values are:
"Regular"Removes the bold and italic attributes.
"Bold"Sets the font to bold.
"Italic"Sets the font to italic.
"Bold Italic"Sets the font to bold and italic.
sizeThe point size to be used.
strikethroughNot currently implemented.
superscriptNot currently implemented.
subscriptNot currently implemented.
outlineNot currently implemented.
shadowNot currently implemented.
underlineThe underline style to be used. The possible values are:
0None
1Single
2Double (not currently implemented)
3Single accounting (not currently implemented)
4Double accounting (not currently implemented)
colorThe color to be used. The possible values are:
0Automatic
1 to 56One of the colors displayed in the Format Cells Font dialog box
normalNot currently implemented.
backgroundNot currently implemented.
start_charNot currently implemented.
char_countNot currently implemented.
FORMAT.NUMBER(format_text)
Formats the cells in the selection on the current worksheet using the specified format.
format_textThe number format to be used.
FORMULA(formula_text, [reference])
Enters the specified formula in the specified reference.
formula_textThe formula to be inserted.
referenceThe reference where formula to be inserted. If this parameter is omitted it defaults to the cursor position on the active worksheet.
GET.OBJECT(type_num, [object_id], [start_num], [count_num], [item_index])
Returns information about the specified object.
type_numThe type of information to return. The possible values are:
1object type as number:
1 line
2 rectangle
3 oval
6 text box
7 command button
11 check box
12 option button
14 label
16 spinner
17 scroll bar
18 list box
19 group box
20 drop down box
2locked
3z-order
4top-left cell as R1C1 reference
5x-offset of top-left corner in points
6y-offset of top-left corner in points
7bottom-right cell as R1C1 reference
8x-offset of bottom-right corner in points
9y-offset of bottom-right corner in points
10reference of the macro as text
11object positioning as number:
1 move and size with cells
2 move but don't size with cells
3 don't move or size with cells
12object text from start_num for count_num characters
object_idThe object identifier. If this parameter is omitted it defaults to the currently selected object on the active worksheet.
start_numThe text substring start position for type_num 12. If this parameter is omitted it defaults to 1.
count_numThe text substring length for type_num 12. If this parameter is omitted it defaults to 255.
item_indexThis parameter is not currently used.
INPUT(message_text, [type_num], [title_text], [default], [x_pos], [y_pos], [help_ref])
Displays a message in a dialog box with an area for user input and OK and Cancel buttons. If the OK button is pressed then the text entered by the user is returned. If the Cancel button is pressed then this function returns the value FALSE.
message_textThe message that you want displayed in the dialog box.
type_numThe acceptable data type(s) for the data that you want returned. It can be any combination of the following (to specify more than one value, add the numbers together):
0Formula
1Number
2Text
4Logical
8Reference
16Error
64Array
If this parameter is omitted it defaults to 2.
title_textThe title to be used for the dialog box. If this parameter is omitted it defaults to "Input".
defaultThe text that you want to be initially displayed in the input area of the dialog box. If this parameter is omitted the input area will be blank.
x_posThe initial x position on the screen where the dialog box will be displayed. If this parameter is omitted it defaults to the center of the screen. (Not currently supported).
y_posThe initial y position on the screen where the dialog box will be displayed. If this parameter is omitted it defaults to the center of the screen. (Not currently supported).
help_refThe name of help topic that is to be displayed if the user presses the Help button in the dialog box. If this parameter is omitted then no Help button is displayed. (Not currently supported).
INSERT([shift_num])
Simulates the Insert Cells menu option.
shift_numThe way in which the cell insertion is to be processed. The possible values are:
1Shift cells right.
2Shift cells down.
3Insert entire rows.
4Insert entire columns.
If this parameter is omitted it defaults to 2.
PASTE([to_reference])
Simulates the Edit Paste menu option.
to_referenceThe cells where the copied information is to be pasted. If this parameter is omitted it defaults to the current selection on the active worksheet.
REFTEXT(reference, [a1])
Returns a string containing the specified reference.
referenceThe reference that is to be converted to text.
a1Specifies the style of the reference. The possible values are:
FALSER1C1 style
TRUEA1 style
If this parameter is omitted it defaults to FALSE.
ROW.HEIGHT([height_num], [reference], [standard_height], [type_num])
Simulates the Format Row menu options.
height_numThe new height of the rows. The height is measured in points. This parameter is ignored if standard_height is TRUE or type_num is specified. If this parameter is omitted the height of the specified rows is not changed.
referenceThe rows whose height is to be changed. If this parameter is omitted it defaults to the current selection on the active worksheet.
standard_heightSpecifies whether the rows are to be set to the standard row height. The possible values are:
TRUEThe rows are set to the standard height.
FALSEThe rows are not set to the standard height.
If this parameter is omitted it defaults to FALSE.
type_numSpecifies whether the rows are to be hidden, unhidden or automatically sized. This parameter is ignored if standard_height is TRUE. The possible values are:
1The rows are hidden.
2The rows are unhidden.
3The rows are set to the height of the highest displayed value.
If this parameter is omitted the rows will not be hidden, unhidden or auto-sized.
SELECT([selection], [active_cell])
Sets the selection and cursor cell on the active worksheet.
selectionThe cells that are to be the selection. If this parameter is omitted the current selection is not changed.
active_cellThe cell that is to be the cursor cell. If this parameter is omitted it defaults to the top left cell in the selection.
SELECTION()
Returns a reference which represents the current selection on the active worksheet.
SORT([orientation], [key1], [order1], [key2], [order2], [key3], [order3], [header], [custom], [case])
Simulates the Format Data Sort menu option.
orientationSpecifies whether to sort the rows or columns. The possible values are:
1Sort rows
2Sort columns
If this parameter is omitted it defaults to 1.
key1Specifies a reference to the first column or row to sort on. If this parameter is omitted it defaults to the first column or row in the selection.
order1Specifies whether to sort the data in ascending or descending order. The possible values are:
1Ascending
2Descending
If this parameter is omitted it defaults to 1.
key2Specifies a reference to the second column or row to sort on. If this parameter is omitted then the second key is not used.
order2Specifies whether to sort the data in ascending or descending order. The possible values are:
1Ascending
2Descending
If this parameter is omitted it defaults to 1.
key3Specifies a reference to the third column or row to sort on. If this parameter is omitted then the third key is not used.
order3Specifies whether to sort the data in ascending or descending order. The possible values are:
1Ascending
2Descending
If this parameter is omitted it defaults to 1.
headerSpecifies whether the selected cells include a header row or column. The possible values are:
0Determine the presence of a header automatically
1There is a header
2There is no header
If this parameter is omitted it defaults to 2.
customSpecifies whether to use a custom list for the first sort key. The possible values are:
1Use normal sort sequence
2Day short names
3Day long names
4Month short names
5Month long names
If this parameter is omitted it defaults to 1.
caseSpecifies whether the sort should be case-sensitive. The possible values are:
TRUEThe sort is case-sensitive
FALSEThe sort is not case-sensitive
If this parameter is omitted it defaults to FALSE.
TEXTREF(text, [a1])
Returns a reference corresponding to the specified text.
textThe string containing the reference.
a1Specifies the style of the reference. The possible values are:
FALSER1C1 style
TRUEA1 style
If this parameter is omitted it defaults to FALSE.
WORKBOOK.ACTIVATE(sheet_name)
Specifies the sheet that is to be the active worksheet.
sheet_nameThe sheet that is to be the active worksheet.
WORKBOOK.DELETE([sheet_name])
Deletes the specified sheet from the workbook.
sheet_nameThe sheet that is to be deleted. If this parameter is omitted it defaults to the currently active sheet.
WORKBOOK.INSERT([type_num])
Adds a new sheet to the workbook.
type_numThe type of sheet that is to be added. The possible values are:
1A worksheet
2A chart
3A macro sheet
If this parameter is omitted it defaults to the type of the currently active sheet.
WORKBOOK.NAME(old_sheet_name, new_sheet_name)
Renames the specified sheet in the workbook.
old_sheet_nameThe sheet that is to be renamed.
new_sheet_nameThe new name for the sheet.
Wyszukiwarka
Podobne podstrony:
SCEHlpFoSCEHlpObSCEHlpMeSCEHlpFESCEHlpMaSCEHlpBaSCEHlpChSCEHlpFFSCEHlpFRSCEHlpFSSCEHlpFXSCEHlpFDSCEHlpFMSCEHlpFTSCEHlpFCSCEHlpFLSCEHlpFIwięcej podobnych podstron