I am writing a Macro programm in a LibreOffice Calc spreadsheet. This macro should do the following (amongst other things):