home *** CD-ROM | disk | FTP | other *** search
- /* ----------------------------------- */
- /* Final Data ARexx Macro. */
- /* Repeat data from the cell above. */
- /* $VER: RepeatAboveCell 1.0 (21.6.94) */
- /* ----------------------------------- */
- OPTIONS RESULTS
-
- SelectionInfo
-
- PARSE VAR RESULT selType selCol selRow selBeg selEnd
-
- IF ( (selType = 'CELL') & (selRow > 1) ) THEN DO
-
- /* Clear out any present data */
- CurrentCellData
- len = LENGTH(RESULT)
- IF ( len > 0 ) THEN DO
- SetCaret FROM 0 TO len
- Delete
- END
-
- /* Get the data from the above cell */
- CellData selCol selRow-1 EDITFORMAT
- data = RESULT
-
- /* Put in the new data */
- Insert data
-
- END