DIAdem Help

Method: Cells for Worksheet

  • Updated2024-09-12
  • 1 minute(s) read

Method: Cells for Worksheet

Returns a cell of an Excel worksheet.

Set oCell = Object.Cells(Row, Column)
ObjectWorksheet
Object with this method
RowLongInteger
Specifies the cell row.
ColumnLongInteger
Specifies the cell column.
oCellCell
Returned object

The following example creates an Excel workbook, fills the first cell with the value 3.14, and outputs this value. Refer to the help page Worksheet for detailed examples:

VBScriptPython

 

Dim oMyWorkbook, oMySheet
Set oMyWorkbook = CreateExcelWorkbook() 
Set oMySheet = oMyWorkbook.Worksheets(1)
oMySheet.Cells(1, 1).Value = 3.14
Call MsgBox(oMySheet.Cells(1, 1).Value)