Analysis.CaseWeightSource

This property returns or sets the case weight source.

Syntax Return/assignment value
- CaseWeightSource

SVB Example

Customizing the case weight options for an analysis:

Option Base 1
Option Explicit
Sub Main
    'enable case weight for the current analysis
    ActiveAnalysis.CaseWeight.Enabled = True
    'set the case weight source to scCWSourceLocal
    'specified weights will be used in the current
    'analysis only, not saved to the input spreadsheet
    ActiveAnalysis.CaseWeightSource = scCWSourceLocal
    'Note how the Weights button is now enabled
    ActiveAnalysis.Visible = True
End Sub