Accessing OptQuest with the Crystal Ball Developer Kit

The object instantiation in OptDevKitRuntimeSample.xls uses the Set ... = New syntax to create objects in the CBCOMDevKit namespace:

Set PortfolioOptSetup = New CBCOMDevKit.OptSetup
Set PortfolioOptRuntime = New CBCOMDevKit.OptRuntime

You can also create and use these objects outside of that namespace with the following Crystal Ball Developer Kit calls:

To do this, you must reference CBDevKit as well as CBCOMDevKit. Then, you can use Visual Basic or VBA syntax to apply methods and properties. For example, CB.OptSetup.Show can be used in Visual Basic or VBA code to display the OptQuest wizard.