Looping a Word macro over many list paragraphs causes memory issue

前端 未结 3 1427
醉话见心
醉话见心 2021-01-27 10:33

I\'m hitting problem with a reasonably straightforward vba macro for Microsoft Word which is designed to get around some issues we\'re seeing with list indentation when we creat

3条回答
  •  后悔当初
    2021-01-27 10:51

    I've found a nasty, dirty solution that gets around the issue somewhat but is really a very poor fix. Basically, once we have gotten through one complete run of the macro, close and save the document and immediately reopen. This then allows the macro to be rerun immediately or at any stage because closing the document seems to eventually flush the memory properly. Obviously this can only be used if the user is happy to save as part of running the macro, but in my case it is

提交回复
热议问题