[Solved] Hide all columns
Posted: Fri May 27, 2011 1:27 pm
Hi! My English is bad, sorry! )
I need to hide first column, but after the code processing all the columns are hiding.
1c7.7 -> OpenOffice 3.1
I need to hide first column, but after the code processing all the columns are hiding.
Code: Select all
ServiceManager = CreateObject("com.sun.star.ServiceManager");
Desktop = ServiceManager.createInstance("com.sun.star.frame.Desktop");
Document = Desktop.LoadComponentFromURL("private:factory/scalc", "blank", 0, Array);
Sheets = Document.getSheets();
Sheet = Sheets.getByIndex(0);
Col = Sheet.Columns(0);
Col.IsVisible = 0;