https://bugs.documentfoundation.org/show_bug.cgi?id=167420
--- Comment #5 from Mike Kaganski <[email protected]> --- (In reply to Zdenek Borecky from comment #0) To clarify: previously, you had to do that "+ 1": > Sub Main > ... > ThisComponent.Sheets.moveByName("Sheet2", i + 1) And that was exactly wrong. To move to position i, you had to make it i+i; and also you had to consider, if i is greater or smaller than the current index of the sheet you are moving. That is now fixed. When you want to move sheet to position i, you just use that i, and may be sure that ThisComponent.Sheets.moveByName("Sheet2", i) MsgBox ThisComponent.Sheets.getByName("Sheet2").RangeAddress.sheet would show the value of i. -- You are receiving this mail because: You are the assignee for the bug.
