Spreadsheet.StandardizeVariables

This function standardizes the specified range of variables in the spreadsheet.

Syntax Parameters Return Value
Sub Spreadsheet.StandardizeVariables( _
    Variables As Variant, _
    Optional selectionIncludeExpression As String = "", _
    Optional selectionIncludeList As String = "", _
    Optional selectionExcludeExpression As String = "", _
    Optional selectionExcludeList As String = "", _
    Optional weightVar As Integer = 0)
  • Variables [in]

Which variable to standardize.

Type: Variant

  • selectionIncludeExpression [in,optional]

The selection condition inclusion expression. Note that this parameter defaults to an empty string.

Type: String

Default value: ""

  • selectionIncludeList [in,optional]

The selection condition inclusion list of cases. Note that this parameter defaults to an empty string.

Type: String

Default value: ""

  • selectionExcludeExpression [in,optional]

The selection condition exclusion expression. Note that this parameter defaults to an empty string.

Type: String

Default value: ""

  • selectionExcludeList [in,optional]

The selection condition exclusion list of cases. Note that this parameter defaults to an empty string.

Type: String

Default value: ""

  • weightVar [in,optional]

Which variable to use as the weight variable. Note that this parameter defaults to 0, implying that no weight variable will be used.

Type: Integer

Default value: 0

This function does not return a value.

SVB Example

Standardizing variables:

Option Base 1
Option Explicit
Sub Main
    'standardizes variables 1 to 3 in the active spreadsheet
    'only standardizes cases 1 to 10 in the active spreadsheet
    'uses variable 4 as the weight variable
    ActiveSpreadsheet.StandardizeVariables("1-3","","1-10","","",4)
End Sub