Back to your main question about disappearing macros...
The default location for storing recorded macros is in NewMacros module of the normal.dotm template. I suspect that is what you exported as text.
That is seldom the best location to keep macros you want to use regularly. It is in the nature of a temporary workbench.
See:
Strange things seem to happen periodically to the Normal.dotm template. This has been true as long as Word has been around. You can make regular backups.
You may be able to find a recent version of your Normal.dotm template with your macros in your
User Templates folder. It will have "normal" as part of the file name and a recent date.