home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _792977E6897449A7A7002BF08B1734DD < prev    next >
Text File  |  2003-03-07  |  11KB  |  330 lines

  1. BEEP
  2.  
  3. Syntax
  4.  
  5. Beep()
  6.  
  7. Description
  8.  
  9. {BEEP} sounds the computer's built-in speaker.
  10.  
  11. Number dictates the tone of the beep. If Number is omitted, {BEEP 1} sounds. If Number is larger than 10, the pattern repeats; for example, {BEEP 11} is the same as {BEEP 1}.
  12.  
  13. Use {BEEP} to catch your attention. You can use it in interactive macros to introduce a prompt for information or to indicate a macro has finished.
  14.  
  15. Example
  16.  
  17. The following macro checks a cell area named error_check for an error condition (indicated by error_check containing zero). If there is no error, it branches to a macro called _continue, which carries on the previous procedure. If there is an error, it gives a low beep, then a medium beep, and moves the selector to the cell area called message_area, where an error message is stored.
  18.  
  19. {IF error_check = 0}{BRANCH _continue}
  20.  
  21. {BEEP 1}{BEEP 5}{EditGoto message_area}
  22.  
  23. BLANK
  24.  
  25. Syntax
  26.  
  27.  Blank(Blocks As String)
  28.  
  29. Description
  30.  
  31. {BLANK} erases the contents of the cells referred to as Location. You can also use the command equivalents {ClearContents} and {EditClear} to erase the contents of the currently selected cells.
  32.  
  33. Example
  34.  
  35. This macro erases the cells named part_list:
  36.  
  37. \F    {BLANK part_list}
  38.  
  39. Parameters
  40.  
  41. Location    Cell(s) you want erased
  42.  
  43. BlockCopy
  44.  
  45. Syntax
  46.  
  47. BlockCopy(SourceBlock As String, DestBlock As String, [ModelCopy_ As _BlockCopy_ModelCopy__enum], [Formulas_ As _BlockCopy_Formulas__enum], [Values_ As _BlockCopy_Values__enum], [Properties_ As _BlockCopy_Properties__enum], [Objects_ As _BlockCopy_Objects__enum], [RowCol_Sizes_ As _BlockCopy_RowCol_Sizes__enum], [Labels_ As _BlockCopy_Labels__enum], [Numbers_ As _BlockCopy_Numbers__enum])
  48.  
  49. Description
  50.  
  51. {BlockCopy} copies the source cells to the specified destination. If ModelCopy? is 1, absolute references to cells within the copied cells adjust to reflect the new location. Formula?, Values?, Properties?, Object?, Row/Col_Sizes?, Labels?, and Numbers? apply only if ModelCopy? is 1.
  52.  
  53. You can use {BlockCopy?} or {BlockCopy!} to display the Copy Cells dialog box. {BlockCopy?} lets you manipulate the dialog box, whereas {BlockCopy!} relies on the macro to manipulate it.
  54.  
  55. Parameters
  56.  
  57. SourceBlock    Cells to copy
  58.  
  59. DestBlock    Location to copy cells
  60.  
  61. ModelCopy?    Whether to use Model Copy option; 0 = no, 1 = yes; the default is 0
  62.  
  63. Formula?    Whether to copy formula cells; 0 = no, 1 = yes; the default is 1
  64.  
  65. Values?    Whether to copy value cells; 0 = no, 1 = yes; the default is 1
  66.  
  67. Properties?    Whether to copy properties; 0 = no, 1 = yes; the default is 1
  68.  
  69. Object?    Whether to copy objects; 0 = no, 1 = yes; the default is 1
  70.  
  71. Row/Col_Sizes?    Whether to copy row and column sizes; 0 = no, 1 = yes; the default is 1
  72.  
  73. Labels?    Whether to copy label cells; 0 = no, 1 = yes; the default is 1
  74.  
  75. Numbers?    Whether to copy number cells; 0 = no, 1 = yes; the default is 1 (reserved for Cell Comments)
  76.  
  77. BlockDelete
  78.  
  79. Syntax
  80.  
  81. {BlockDelete.Option}
  82.  
  83. Description
  84.  
  85. {BlockDelete.Option} deletes entire or partial columns, rows, and sheets. Block is the 2-D or 3-D selection where material is deleted.
  86.  
  87. You can use {BlockDelete?} or {BlockDelete!} to display the Delete dialog box. {BlockDelete?} lets you manipulate the dialog box, whereas {BlockDelete!} relies on the macro to manipulate it.
  88.  
  89. Options
  90.  
  91. {BlockDelete.Columns Block, Entire|Partial}    Deletes entire or partial column
  92.  
  93. {BlockDelete.Pages Block, Entire|Partial}    Deletes entire or partial page
  94.  
  95. {BlockDelete.Rows Block, Entire|Partial}    Deletes entire or partial row
  96.  
  97. BlockFill
  98.  
  99. Syntax
  100.  
  101. BlockFill_Block(Block As String)
  102.  
  103. Description
  104.  
  105. {BlockFill.Option} fills Block with sequential data. You can use numbers, dates, times, or even formulas for Value.
  106.  
  107. If {BlockFill.Start} is a number or formula, you can enter one of these strings for {BlockFill.Series}:
  108.  
  109. ¿    "Linear" adds the step value to the previous value (defined at first to be the start value).
  110.  
  111. ¿    "Growth" multiplies the step value by the previous value.
  112.  
  113. ¿    "Power" uses the step value as the exponent of the previous value.
  114.  
  115. If {BlockFill.Start} is a date or time, the fill operation is always linear, but you can specify the step unit as "Year," "Month," "Week," "Weekday," "Day," "Hour," "Minute," or "Second". For example, with a start value of 6/20/92, a step value of 2, and "Month" as the {BlockFill.Series Option} setting, the second cell in the filled cells contains August.
  116.  
  117. You can enter the date and time directly as a serial number or use one of the date and time @functions.
  118.  
  119. You can use {BlockFill?} or {BlockFill!} to display the Fill Series dialog box. {BlockFill?} lets you manipulate the dialog box, whereas {BlockFill!} relies on the macro to manipulate it.
  120.  
  121. Example
  122.  
  123. The following macro uses @DATEVALUE to enter 6/20/92 as the start value. The 3-D selection to fill is B..C:B1..D4 with a step value of 2. Fill order is "Row."
  124.  
  125. {BlockFill.Block B:B1..C:D4}
  126.  
  127. {BlockFill.Start @DATEVALUE("6/20/92")}
  128.  
  129. {BlockFill.Step 2}
  130.  
  131. {BlockFill.Stop @DATEVALUE("12/31/2099")}
  132.  
  133. {BlockFill.Order Row}
  134.  
  135. {BlockFill.Series Month}
  136.  
  137. {BlockFill.Go}
  138.  
  139. Options
  140.  
  141. {BlockFill.Block Block}    Specifies the cells to fill with values.
  142.  
  143. {BlockFill.Go}    Fill the specified cells.
  144.  
  145. {BlockFill.Order Column|Row}    Specifies whether to fill down columns or across rows.
  146.  
  147. {BlockFill.Series Linear | Growth | Power | Year | Month | Week | Weekday |Day | Hour | Minute | Second}    Specifies the type of fill operation to perform.
  148.  
  149. {BlockFill.Start Value}    Sets the first value in the series.
  150.  
  151. {BlockFill.Step Value}    Sets the constant value to add to the Start value or the last value.
  152.  
  153. {BlockFill.Stop Value}    Sets the limit for the fill values.
  154.  
  155. BlockInsert
  156.  
  157. Syntax
  158.  
  159. {BlockInsert.Option}
  160.  
  161. Description
  162.  
  163. {BlockInsert} inserts entire or partial columns, rows, and sheets, or complete files. Block is the 2-D or 3-D selection where material is inserted. In {BlockInsert.File}, Filename is inserted into the active notebook before BeforeBlock.
  164.  
  165. You can use {BlockInsert?} or {BlockInsert!} to display the Insert Cells dialog box. {BlockInsert?} lets you manipulate the dialog box, whereas {BlockInsert!} relies on the macro to manipulate it.
  166.  
  167. Options
  168.  
  169. {BlockInsert.Columns Block, Entire|Partial}    Inserts complete or partial columns.
  170.  
  171. {BlockInsert.File FileName, BeforeBlock}    Inserts a complete file.
  172.  
  173. {BlockInsert.Pages Block, Entire|Partial}    Inserts complete or partial pages.
  174.  
  175. {BlockInsert.Rows Block, Entire|Partial}    Inserts complete or partial rows.
  176.  
  177. {BlockMove}
  178.  
  179. Syntax
  180.  
  181. BlockMove(SrcBlock As String, DstBlock As String)
  182.  
  183. Description
  184.  
  185. Lets you move a block.
  186.  
  187. Parameters
  188.  
  189. SrcBlock    The block you want to move
  190.  
  191. DstBlock    New location for SrcBlock
  192.  
  193. BlockMovePages
  194.  
  195. Syntax
  196.  
  197. BlockMovePages(SrcPages As String, BeforePage As String, [CopyOption_ As _BlockMovePages_CopyOption__enum])}
  198.  
  199. Description
  200.  
  201. {BlockMovePages} reorders sheets within a notebook. Moved sheets appear before BeforePage.
  202.  
  203. You can use {BlockMovePages?} or {BlockMovePages!} to display the Move Sheets dialog box. {BlockMovePages?} lets you manipulate the dialog box, whereas {BlockMovePages!} relies on the macro to manipulate it.
  204.  
  205. Example
  206.  
  207. The following macro will move the page named July to the position before the page named August.
  208.  
  209. Example:
  210.  
  211. {BlockMovePages July; August}
  212.  
  213. Parameters
  214.  
  215. SrcPages    Range of sheets to move
  216.  
  217. BeforePage    New location for SrcPages
  218.  
  219. BlockName
  220.  
  221. Syntax
  222.  
  223. {BlockName.Option}
  224.  
  225. PerfectScript Syntax
  226.  
  227. BlockName_AutoGenerate (Block:String; LabelsTop?:Enumeration {Yes!; No!};
  228.  
  229. LabelsLeft?:Enumeration {Yes!; No!}; LabelsBottom?:Enumeration {Yes!; No!};
  230.  
  231. LabelsRight?:Enumeration {Yes!; No!}; Intersection?:Enumeration {Yes!; No!})
  232.  
  233. BlockName_Create (BlockName:String; Block:String)
  234.  
  235. BlockName_Delete (BlockName:String)
  236.  
  237. BlockName_Labels (Block:String; Where:Enumeration {Right!; Down!; Left!; Up!})
  238.  
  239. BlockName_MakeTable (Block:String)
  240.  
  241. BlockName_Reset ()
  242.  
  243. Description
  244.  
  245. {BlockName} creates, deletes, and displays names for contiguous and noncontiguous selections.
  246.  
  247. BlockName is the cell name to create or delete. In {BlockName.Create}, Block refers to the cells to name; in {BlockName.MakeTable}, Block indicates where to create the name table. {BlockName.Reset} clears all cell names in the notebook.
  248.  
  249. You can use {BlockName?} or {BlockName!} to display the Cell Names dialog box. {BlockName?} lets you manipulate the dialog box, whereas {BlockName!} relies on the macro to manipulate it.
  250.  
  251. Options
  252.  
  253. {BlockName.Autogenerate Block, LabelsTop?(0|1), LabelsLeft?(0|1), LabelsBottom?(0|1), LabelsRight?(0|1), Intersection?(0|1)}    Creates cell names from adjacent labels.
  254.  
  255. {BlockName.Create BlockName, Block}    Adds a name for the specified cell to the cell name list.
  256.  
  257. {BlockName.Delete BlockName}    Deletes a selected cell name.
  258.  
  259. {BlockName.Labels Block,Left|Right|Up|Down}    Assigns names to single cells using adjacent labels.
  260.  
  261. {BlockName.MakeTable Block}    Creates a table in the notebook listing all named cells by name and location.
  262.  
  263. {BlockName.Reset}    Deletes all existing cell names from the notebook.
  264.  
  265. {BlockReformat}
  266.  
  267. Syntax
  268.  
  269. BlockReformat(Block As String)
  270.  
  271. Description
  272.  
  273. {BlockReformat} adjusts word wrapping in a series of label entries (contained in Block) as though they were in a paragraph.
  274.  
  275. Parameters
  276.  
  277. Block    The cells to reformat
  278.  
  279. BlockTranspose
  280.  
  281. Syntax
  282.  
  283. BlockTranspose(SrcBlock As String, DstBlock As String)
  284.  
  285. Description
  286.  
  287. {BlockTranspose} copies SourceBlock to another location and reverses its rows and columns. Existing data in DestBlock is overwritten.
  288.  
  289. You can use {BlockTranspose?} or {BlockTranspose!} to display the Transpose Cells dialog box. {BlockTranspose?} lets you manipulate the dialog box, whereas {BlockTranspose!} relies on the macro to manipulate it.
  290.  
  291. Parameters
  292.  
  293. SourceBlock    Cells to transpose
  294.  
  295. DestBlock    Cells to hold transposed copy
  296.  
  297. BlockValues
  298.  
  299. Syntax
  300.  
  301.  BlockValues(SrcBlock As String, DstBlock As String)
  302.  
  303. Description
  304.  
  305. {BlockValues} copies cells to another location and converts their formulas to values. Existing data in DestBlock is overwritten.
  306.  
  307. You can use {BlockValues?} or {BlockValues!} to display the Convert to Values dialog box. {BlockValues?} lets you manipulate the dialog box, whereas {BlockValues!} relies on the macro to manipulate it.
  308.  
  309. Parameters
  310.  
  311. SourceBlock    Cells to copy as values
  312.  
  313. DestBlock    Cells to hold converted copy
  314.  
  315. BudgetExpert
  316.  
  317. Syntax
  318.  
  319. BudgetExpert()
  320.  
  321. Description
  322.  
  323. {BudgetExpert} displays the first Budget Expert dialog box.
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.