Dear Victor,
It is not possible to set the value of SAM inputs from outside of SAM.
However, if you are a software programmer, you can use the
SAM software development kit
to run SAM simulation modules without the SAM user interface. The SDK is a set of tools to work with the SAM Simulation Core (SSC) application programming interface (API). You can access the API in its native C, or using the language wrappers we've written for Java, C#, Python and MATLAB. We are considering writing a Microsoft VBA wrapper in the future, but do not have one now.
Best regards,
Paul.