Spreadsheet.SetTextLabel
This function sets a new text label for the specified variable.
| Syntax | Parameters | Return Value |
|---|---|---|
Sub Spreadsheet.SetTextLabel( _
VarNo As Integer, _
NumericValue As Double, _
TextLabel As String, _
Optional Description As String = "")
|
Which variable to add the text label to. Type: Integer
Double value that is assigned to the new text label. Type: Double
String value used as text label's text. Type: String
String value used as text label's description. This parameter defaults to a blank string. Type: String Default value: "" |
This function does not return a value. |
SVB Example
Adding a text label:
Option Base 1
Option Explicit
Sub Main
Dim spr As Spreadsheet
'creates a new spreadsheet and assigns it to the object spr
Set spr = Spreadsheets.New("Text Label")
'creates a new text label for variable 1
spr.SetTextLabel(1,1000,"Wheat","Type of bread preferred")
spr.Value(1,1) = 1000
'sets the spreadsheet to visible
spr.Visible = True
End Sub