This example runs a simulation, calls CB.CheckData (because a CB.Enum call follows), and then closes the next overlay chart in the workbook.
CB.Simulation 1000 CB.CheckData CB.CloseChart cbChtOverlay, CB.EnumChart(cbChtOverlay)