analyticsinmotion/add-chatgpt-to-microsoft-word

Macro is lost after closing Word

chaoscreater opened this issue · 11 comments

I got everything working correctly, but Word seems to lose the macro after it is closed. Is there a way to make this stick?

Actually never mind, I'm stupid. Got it working.

How did you fix it? I'm having the same issue

Hi @losparviero, we have had this issue raised a couple of times. On both occasions, re-importing the VBA script file and re-linking to the ribbon button got it working again. We are still looking at the underlying cause of this issue. Could you please let us know what version of Word/Office you are using? Cheers

Hi, the version of Word that I'm using is: Microsoft® Word 2021 MSO (Version 2304 Build 16.0.16327.20200) 64-bit
Part of Microsoft Home and Office Student 2021
I hope that helps! Re-importing the script also doesn't help in my case, I have to import every time I want to use, it works fine otherwise

Hi again, we are sorry to hear that it is still having issues. The two cases we have seen from other users were only affected temporarily, and both were on Office/Word 2016. Once the macro files were reimported, they didn't disappear again. We have been unable to replicate the issue on our side. However, we have seen a lot of articles on macros disappearing in general. I would do search to find any articles that may be similar to your setup. For example, here are two articles on the Microsoft forum we were looking at: Word DELETES all my macros about once a month and Normal template wiped, again.

Keep us posted on how you go and if you can/can't find a fix to your issue.

Using Office LTSC 2021 ... it gets delinked again and again.

image

I have to import it again in the Visual Basic and then use it.

Hi @ilovefreesw, thank you for letting us know you are having an issue. Can you tell us what macro settings you have selected? You should be able to find this in the Developer tab and then click Macro Security. Thanks

image

Try to Import the .bas again. However, this time before clicking File > Import, make sure you have the Normal Project selected first (see image below)

Error Fix 2

Try this and let us know how you go

Yes it works this way now. Thanks.