Spreadsheet.RemoveTextLabel

This function removes a text label for the specified variable.

Syntax Parameters Return Value
Sub Spreadsheet.RemoveTextLabel( _
    VarNo As Integer, _
    LabelOrValue As Variant)
  • VarNo [in]

Which variable to remove the text label from.

Type: Integer

  • LabelOrValue [in]

Which text label to remove. Accepts either the Text Label or the Text Label Value.

Type: Variant

This function does not return a value.

SVB Example

Removing text labels:

Option Base 1
Sub Main
    Dim spr As Spreadsheet
    'assigns the active spreadsheet to the object spr
    Set spr = ActiveSpreadsheet
    'removes all "MALE" text labels located in variable 1 of the example file adstudy.sta
    'the numeric value will be displayed instead of the label
    spr.RemoveTextLabel(1,"MALE")
End Sub