EXCEL SET CELL: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[:Category:Excel|{{Up}}]] | |||
{{Command|syntax=EXCEL_SET_CELL <row>, <col>, <contents> | {{Command|syntax=EXCEL_SET_CELL <row>, <col>, <contents> | ||
|description=:Change a cell's contents. | |description=:Change a cell's contents. | ||
| Line 4: | Line 6: | ||
|param1=<row>|param1_desc={{row}} | |param1=<row>|param1_desc={{row}} | ||
|param2=<col>|param2_desc={{col}} | |param2=<col>|param2_desc={{col}} | ||
|param3=<contents>|param3_desc= | |param3=<contents>|param3_desc=New cell contents, must be text. | ||
}} | }} | ||
===Example=== | ===Example=== | ||
:EXCEL_SET_CELL 2, 4, " | :EXCEL_SET_CELL 2, 4, "Tool Number 14" | ||
<br> | |||
:RowNum = 3 | |||
:ColNum = 5 | |||
:CellText$ = "Tool Number 6" | |||
:EXCEL_SET_CELL RowNum, ColNum, CellText$ | |||
[[Category:Excel]] | [[Category:Excel]] | ||
Latest revision as of 17:41, 12 January 2011
Command
- EXCEL_SET_CELL <row>, <col>, <contents>
- Change a cell's contents.
Parameters
- <row>
- Row number.
- <col>
- Column number.
- <contents>
- New cell contents, must be text.
Example
- EXCEL_SET_CELL 2, 4, "Tool Number 14"
- RowNum = 3
- ColNum = 5
- CellText$ = "Tool Number 6"
- EXCEL_SET_CELL RowNum, ColNum, CellText$