I have a .docm file I use as a template and then modified using VBA, the file is saved as a .docx file using part of the info entered by the user. The file is to be opened later and printed.
After saving the created file as a .docx file I cannot open them with Word. It says that there is something wrong with the file.
I took a look at the raw contents using Notepad and found that there was a heading in it of XML. So I resaved the file as .docxml, opened it and saved it as a .docx and everything works.
I don't see what is causing the problem in my code and would appreciate some help
In case this makes no sense ask some questions and I will try to clarify