[Libreoffice-bugs] [Bug 122980] Macro does not execute as recorded
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Jan 26 14:45:04 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=122980
Oliver Brinzing <oliver.brinzing at gmx.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
CC| |oliver.brinzing at gmx.de
--- Comment #1 from Oliver Brinzing <oliver.brinzing at gmx.de> ---
reproducible with
Version: 6.1.5.1 (x64)
Build-ID: f18954c1ba9116b85c32b6bdbc0188d3e0fd24c7
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard;
Gebietsschema: de-DE (de_DE); Calc:
macro recording does not save cell selections.
btw: a better solution would be to use LO API, e.g.:
Sub DeleteRange()
Dim oDoc as Object
Dim oSheet as Object
Dim oRange as Object
Dim nFlag as Long
oDoc = ThisComponent
oSheet = oDoc.getSheets().getByName("Sheet1")
oRange = oSheet.getCellRangeByName("A2:A10")
'
https://www.openoffice.org/api/docs/common/ref/com/sun/star/sheet/CellFlags.html
nFlag = com.sun.star.sheet.CellFlags.VALUE +_
com.sun.star.sheet.CellFlags.STRING +_
com.sun.star.sheet.CellFlags.DATETIME
oRange.clearContents(nFlag)
End Sub
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190126/ec705270/attachment.html>
More information about the Libreoffice-bugs
mailing list