I am a newbie. I have tried to develop a macro, but was unsuccessful. I was hoping someone could help me.
Unfortunately, Libreoffice doesn’t have a sort function. This the functionality I am trying to create and automate through a workbook on multiple sheets.
I need a macro to sort a number of ranges throughout the spreadsheet, and place the sorted data in a column next to the source data.
Sheet1.A1=pineapples
Sheet1.A2=oranges
Sheet1.A3=pears
Sheet1.A4=bananas
Sheet1.A5=broccoli
Sheet1.A6=lemons
Sheet1.A7=strawberrries
Sheet1.A8=apples
I need a macro automatically sort this range and place the results Sheet1.B1:B8
I need to do this for multiple (50) ranges through a workbook. I assume that I just copy the macro code for the first range and change the input range and output range. Or can it be simply with some type of array and For loop which might make it easier to manage.
I would be most grateful for any assistance. I have tried, but am not getting anywhere.