Hi Przemek

Is there an easy way to change properties of text table column, i.e the back color of the column.

When i read this mailing list posts i found a post that suggests to use text table rows, but for large tables this is not efficient.

The macro

sub Main
        atable = ThisComponent.TextTables(0)
        acolumn = getColumn(1,atable)
        acolumn.BackColor=rgb(0,255,0)
end sub

function getColumn(col as Integer, table as Object) as Object
    tablerows = table.rows.count-1
        getColumn = table.getCellRangeByPosition(col,0,col,tablerows)
end function

will change the backgroundcolor of the second column in your first table.

Hope that helps

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to