Crystal Ball Simulation Run-time error '1004' When using Macro Containing CBFunctions.IterationsFN()

(Doc ID 1622436.1)

Last updated on JULY 28, 2016

Applies to:

Oracle Crystal Ball - Version and later
Information in this document applies to any platform.


An Excel macros in a CB spreadsheet doesn't work as expected when running a Crystal Ball simulation.
The macro is supposed to create a new workbook, copy some data over to the new workbook and then save and close the new workbook.

Run-time error '1004':
You cannot save this workbook with the same name as another open workbook or add-in. Choose a different name, or close the other workbook or add-in before saving.

On debugging it is highlighting this section of the macro:
ActiveWorkbook.SaveAs Filename:=csvFileName, FileFormat:=xlCSV, CreateBackup:=False

That macro works without Crystal Ball


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms