The facility to save versions of a document in a single file was removed in Office 2007.
See the article "How to save a document using a filename that gets incremented by 1 each time if the filename already exists” at:
You will probably want to change the extension of the file in the code from "doc" to "docx"
Did this solve your problem?
Sorry this didn't help.
Great! Thanks for marking this as the answer.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this response?
Thanks for your feedback.