Dera Xinyue,
Yes. You can use SAM's code generator to generate VBA code, and then use that in Excel.
When you use the code generator, you should see a bunch of CSV files that store inputs that are large arrays or tables along with a .bas file that contains the code. For example, if you run the code generator from a case named "untitled," you should see a file named untitled.bas along with the CSV files you mentioned, and copies of th ssc.dll and sscapi.h files
Also, to see other discussions about using VBA with SAM, see these search results:
sam.nrel.gov/search/site/vba
Best regards,
Paul.