I have an Excel worksheet that I use as a template file for exporting data.
An Excel worksheet is an XLSM file and contains several codes written in it in VBA.
Each time the file is copied and renamed with a time stamp, and the data should be written to the copied xlsm file , but it does not write data .
I use the Open XML library for this.
The same thing works if I use the xlsx template file.
Is it not possible to write a macro in xlsm Excel via Open XML?
If so, any instructions that should be kept in mind.
source
share