Hello.

I'm configuring and activating OpenSolver on VBA.
I have a code that sets the objective function cell and the decision variables iteratively for 30 sheets.
If I run the code, it works for the first sheet, then it displays an error saying that the decision variables must be on the active sheet.
If I place some stops at the code and run it one F8 at a time, it runs the entire code without errors.
This seems really odd, any ideas why it's happening?

Thanks for the attention.