All my macros are gone

I just went to use a macro in calc and ALL my macros are gone.
Apparently they should be in:
C:\Users\Toby\AppData\Roaming\LibreOffice\4\user\basic\Standard\Module1.xba
But it’s been reset.
I have not done anything to my profile.
I didn’t know my backup software was ignoring AppData (which is hidden, and 59Gb), so it looks like everything I’ve done is lost.
I’m really angry about this - user data shouldn’t be stored in a hidden folder!
And why has this folder been reset?
Was it reset when I updated to v7.2.4.1 (x64) ?

I have not done anything to my profile.

And you haven’t made a backup of your important profile folder?


https://wiki.documentfoundation.org/Videos/Preventing_data_disaster#The_User_Profile_folder


I’m really angry about this - user data shouldn’t be stored in a hidden folder!

It is a matter of the operating system.
You can make hidden folders visible:

https://wiki.documentfoundation.org/Videos/Preventing_data_disaster#File_locations


Normally this folder is not touched, neither when uninstalling nor when installing.
Did something go wrong during the installation?
Did you possibly use antivirus programs?

General Installation Issues (Windows)

Have a closer look at that folder. Many programs write to this place all kinds of user data which are not stored in your own files and not stored in the registry. All my emails are stored in the Thunderbird subfolder. All my browser stuff, settings, cookies, passwords, everything is stored in the Mozilla subfolder.

Usually the profile is kept during updates. Actually “we” often have to tell people here their “reinstalled LibreOffice” didn’t help, because a corrupted profile was not changed.
.

The files you create are not. Your configuration is in the hidden folder. Why Microsoft puts this in a separate APPDATA, I never understood. Linux uses hidden folders in your home-folder, so everything is in the right place for s simple backup.

Thank you all for your input.
I’ve looked at AppData. It contains, amongst other things,16.3Gb of textures from Fallout 4…
It’s impossible to know what needs to be backed up and what not so I’ll have to back up 60Gb of mostly unimportant files :frowning:
What’s upsetting is that LO has no automatic profile backup (especially when upgrading), and that, whatever went wrong, it went wrong silently.

…that LO has no automatic profile backup…

You can write a feature request on Bugzilla.
https://bugs.documentfoundation.org/

When this happened to me (some nasty crash after which OpenOffice had to restore the profile folder) I noticed that only the Standard library was replaced with the empty Standard library that is part of the default settings. All my well organized macros were intact.
Organizing your Basic macros in libraries other than “Standard” lets you also to distribute (or backup) macros as extensions.
Using Python instead of Basic gives you a lot more advantages.