Syntax
| XLS.SetValue Row, Col, NewValue[, UseBold][, ForceText][, Alignment][, Highlight]
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Sets a value into the selected cell, using the current font settings from the XLS.Font object. Optionally applies some extra formatting to that cell.
The span for NewValue can hold multiple adjecent columns. This is done by placing a vertical bar ("|") between each value in the NewValue string. Each part of the string will then be placed in separate cells, starting at column Col.
Please take notice that the rows and colums are one-based arrays. Therefore, when referring to Excel cell "A1", row and column numbers are 1 and 1.
| ||||||||||||||||
See Also
| |||||||||||||||||
Example
| Sub Main
Dim x As Integer
If Not XLS.AppInit() Then Exit Sub
XLS.AppVisible = True
XLS.AddWorkBook
XLS.AddWorkSheet "Test1"
For x = 1 To 10
XLS.SetValue x, 1 _
, "Cel 1|Dit is 2|En dat is 3|4|5|laatste cel" _ , HighLight:= True Next x
XLS.AppClose
End Sub
|