How to use a button macro to hide rows that works?

Basically as per the title, I recorded a macro where I selected a range of rows, "show"ed them, so they were all visible, then hid a certain range of them. But when the macro is ran it does not repeat my actions, it unhides most cells (a few random rows remain hidden) and that is it.

How do I make a macro which shows and hides rows as recorded in the macro.

please do not mention code I dont code.

Additional - I just tried to re-record one macro, which happened, but didnt run correctly, and now another macro that was verified as working before i recorded this one no longer works.

Why is calc corrupting macros, especially when they are not being edited??

Calc is not corrupting any macros, nor is LibreOffice BASIC. It simply assumes the user is able to read, to understand, and to edit code. The “macro recorder” is explicitly labelled ‘experimental’ and this is not a joke. In your case the “recorded macro” will not contain any information about the rows to hide/show. It simply applies the action to the currently selected range of rows. Parametrising this or even getting a constant range into the macro is not possible using the recorder. You will have to learn coding. Or simply forget it.

Computers are “fast idiots”. There are also lots & lots & lots of them (every mobile/cell-phone is a micro-computer, as is every router, digital radio, and so on & on).

Humans are intended to be “slow geniuses” (there is a reason that our sub-genotype is ‘sapiens’). In the modern age, part of that involves such things as coding computers (which is to say, being a service agent to computers). Like the Borg. You know it makes sense.