You can call the function XLS_Create to create an excel file. And you can call the function XLS_Open to check if an excel file exists. If it does not exist, then call XLS_Create to create. Sample: Excel.amk
There are many other excel functions in Automatic Mouse and Keyboard, to learn more about them, please see http://blog.robot-soft.com/how-to-operate-excel-file.