This code will create an excel file through application engine. Can be called from a push button also.