I use the attached macro to create a second document based on information from the first document. I get a command failed error at the point when I am trying to name the second document which has the same filename as the first, except with an XML extension saved as a Text file. These are NOT true XML files, they simply have tags formatted like XML tags, but the client requires the XML extension.
If someone can add insight as to why the document naming process fails, I would appreciate it.
Thanks!



