To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=91792
------- Additional comments from [EMAIL PROTECTED] Tue Aug 26 07:28:48 +0000
2008 -------
akioo->cn:
Hello cn
I rewrote the code in BASIC (simple macro) and it works in 2.3.0 but not
working in 2.4.1.
The code:
Sub Main2
rem ----------------------------------------------------------------------
rem define variables
dim vDoc as object
dim vRanges as object
dim vKursor as object
rem ----------------------------------------------------------------------
rem get access to the document
vDoc = StarDesktop.CurrentComponent
vRanges = vDoc.createInstance("com.sun.star.sheet.SheetCellRanges")
if vDoc.CurrentController.Selection.supportsService
("com.sun.star.sheet.SheetCellRanges") then
vRanges.addRangeAddresses
(vDoc.CurrentController.Selection.getRangeAddresses,false)
else
vRanges.addRangeAddress
(vDoc.CurrentController.Selection.getRangeAddress,false)
endif
vKursor = vDoc.CurrentController.ActiveSheet.createCursor
vRanges.addRangeAddress(vKursor.getCellRangeByPosition
(1,3,7,8).getRangeAddress, false)
vDoc.getCurrentController.select(vRanges)
End Sub
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]