EXCEL_WRITE

EXCEL_WRITE S1,S2

WRITES S2 INTO THE CELL S1 OF THE CURRENT SHEET WITH MICROSOFT EXCEL

  • Type: Command
  • Parameters: 2
  • Group: Excel

ACTION

The command EXCEL_WRITE S1,S2 writes the string S2 (text or string variable) into the cell defined by S1 in the current sheet of Microsoft Excel, if it is running.

SYNTAX: EXCEL_WRITE S1,S2

  • S1 : string (text or string variable) representing the cell coordinates (Example : "B2")
  • S2 : string (text or string variable) to write in the cell

USE

  • The command is used to write in a sheet of Microsoft Excel.

ERROR

  • If Excel software is not running.
  • If no sheet (file) is opened.

EXAMPLE

rem launch Excel software

excel_start

rem wait for 5 secondes

wait 5000

rem create a new file

excel_file_new 1

rem write "Hello" into cell A1

excel_write "A1","Hello"

SEE ALSO

EXCEL_STOP

EXCEL_START

EXCEL_FILE_NEW

EXCEL_READ$()