Anna, while having Tony on the case here is like having a patron saint...oh never mind..
Anyway, following through this post, I am not sure you quite read PH's post, but more importantly, could you clearly state what your goal is?
1. You state in your original post that you are
openings mydoc and mydoc2 (which are templates)
First of all, are you opening REAL templates, that is, are they .DOT files? Or are they .DOC files? If they are .DOC files, then they are not really templates.
2. If you want to use a real template properly then you create a NEW document, and attach the template to it. This may help solve your problem, because a new document created from a template does not have a name. Therefore there is no need for SaveAs, just use Save.
3. If you are using a document, not a real template, then if you know the folder the file should be saved in, then just use an InputBox to get the name the user wants to save it as, then YOU save the file directly. Or in your process of populating from Excel require a filename. It would be simple to do. Have a textbox on a form, and if it is blankl, or the user cancels out, either give a message, or shut the whole thing down.
Again, could you clearly state what your goal is? Does your process get actual user input? If so, require a filename as part of that input. If you use a real template then opening an instance of Word can skip the Open process. You can use AttachedTemplate instead, then save it.
If the process does NOT require any user input other than a new filename, display a userform with only an OK button, a textbox for input, and make Query_Close (which affects the "x" close icon) also require input into the textbox. That way, they have to put
something. You take that something and save the file with it. End of story.
Unless you want to do further error trapping for the filename, even the process you are working on now will accept a SaveAs with gibberish. If the user puts in "fghskdotkfjsj.doc" it is going to be saved that way.
However, again, it would be better to use a real template.
Gerry