CB.AssumPrefsND

This subroutine sets attributes of Crystal Ball assumptions without using the Preferences menu on the Define Assumption dialog. The default for any preference is the previous setting in the interface.

Different from Crystal Ball 2000.5 (5.5), this subroutine is used to change preferences for individual assumptions instead of all assumptions. You must select a single cell with an assumption before using this subroutine. If the selected cell does not contain an assumption, a cbErrNoAssumptionInCell error appears.

Table 6. CB.AssumPrefsND Parameters

Parameter

VBA Data Type

Named Constant or Boolean Value

Index Value

Description

PrefItem

Integer

cbAssumShowCDF

1

Sets whether to display the distribution as a PDF (False) or CDF (True)

PrefItem

Integer

cbAssumShowMean

3

Sets whether to display the mean line on the distribution dialog (True)

OnOff

Boolean

True or False

n/a

True turns on the option. False turns off the option.

Note:

PrefItem constant cbAssumShowCoordinates [2] is obsolete.