LibreOffice macro to change the width of first and last column of all tables in LibreOffice writer.

There are several tables in my document. I want to set the width of first and last column optimal. Please help.