Listbox Export

Hello,

I want to export the values of a listbox of type “collection or entity selection”

the export must take into account the sorting , the order of the columns and the dimension of the columns made by the user

how to access cell values in a simple and generic way?

the analysis of the formulas associated with the columns is of course possible but becomes very complex because I will have to develop a whole logic to manage all the cases of figure

Somebody have already worked on this topic?
Thank you for your feedback