Spreadsheet.SelectedCaseWithWeights
This function returns case using selection conditions and weighting variable.
SVB Example
Reviewing a case's weighting and case selection:
Option Explicit Sub Main Dim spr As Spreadsheet 'assigns the active spreadsheet to the object spr Set spr = ActiveSpreadsheet Dim CaseData() As Double 'CaseData will contain the data of case 1 Dim IsItSelected As Boolean, IsItWeighed As Boolean Dim VarNo As Integer, VarWeight As Double Dim WeightVar As Long spr.SelectedCaseWithWeights(1,CaseData(),IsItSelected, _ IsItWeighed,VarWeight,WeightVar) MsgBox "Case 1" & _ vbCrLf & "Weighting = " & Str(IsItWeighed) & _ vbCrLf & "Case Selected = " & Str(IsItSelected) & _ vbCrLf & "Weight Variable is " & Str(WeightVar) & _ vbCrLf & "The Weight Value is " & Str(VarWeight) End Sub
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.