View Single Post
 
Old 08-04-2020, 05:21 AM
Kain Kain is offline Windows 10 Office 2019
Novice
 
Join Date: Aug 2020
Posts: 2
Kain is on a distinguished road
Default Code to NOT RUN an (autosave) macro within a macro

Is there a way to have a macro NOT running??

I made an AUTOCLOSE ()macro to that saves document, then saves it again in another location (Finalcopy.doc)


However, I also have a macro [SPARECOPY ()]that copies all text to a file, then saves that file (workingcopy.doc) to a specific location, then closes workingcopy.doc and goes back to the original file.
(a less optimal ‘SaveCopyAS, so to speak)


Thus, when the file workingcopy.doc is closed, I automatically make a Finalcopy.doc.

So to optimize the macro, I’d try inserting something like DoNotCall AUTOCLOSE () or Dontrun.Application in my SPARECOPY () macro, but well, since those commands don’t exist I have to find an other way.

Any ideas?
Reply With Quote