CB.SetCBWorkbookPriority

This subroutine sets the running order for Crystal Ball macros when multiple workbooks are open. For example, a workbook with aPriority = 10 will run before a workbook with aPriority = 20. CB.SetCBWorkbookPriority runs only at the workbook level and not at the worksheet level. For details, see “Running user-defined macros” at the end of Chapter 5 in the Oracle Crystal Ball User's Guide.

Table 173. CB.SetCBWorkbookPriority Parameter

Parameter

VBA Data Type

Value

Description

aPriority

Long

An integer of any size, usually positive

Specifies the running priority of user-defined macros in a workbook. The smaller the positive value, the higher the priority.