Results 1 to 13 of 13

Thread: VBA to create folder from Excel and save Word document in that folder

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    It is not surprising that it crashed, as you didn't do what I said. The sub and the two functions I posted are ALL that you need. You appear to have at least two macros trying to do similar things without closing the document, so you are trying to save the document with a document already created by another version of the code, which is still open.
    I have added code to close the document so that if you run it twice it won't crash. See attached.
    Attached Files Attached Files
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •