i'm sure that getcellrangebyname is not the correct way to identify what row and i think it may be the cause for my issue. row 11 changes to .08 but rows 9 and rows 11 do not change at all but also dont produce an error.
row 9 and 10 must stay or i will have to rewright 6 pages of formulas and a bunch of macro code but because i added row 50 i need to shrink 2 rows to 0 and one to .08 to keep the pages printing correctly.
Code: Select all
oDoc = ThisComponent
oView = oDoc.getCurrentController()
oframe = oview.Frame
osheet = ThisComponent.getSheets().getByIndex(0)
oB2 = oSheet.getCellrangeByName("A9")
oRow = oB2.getRows()
oRow.Height = 0.00 * 25.4 * 100
oB2 = oSheet.getCellrangeByName("A10")
oRow = oB2.getRows()
oRow.Height = 0.00
oB2 = oSheet.getCellrangeByName("A11")
oRow = oB2.getRows()
oRow.Height = 0.08 * 25.4 * 100