https://bugs.freedesktop.org/show_bug.cgi?id=50789

--- Comment #4 from Lisp2D <[email protected]> 2012-07-15 17:51:42 PDT ---
Macro:

    selectSheetByName(thisComponent, "Price blank")
    dispatchURL(thisComponent,".uno:SelectAll")
    dispatchURL(thisComponent,".uno:Copy")
    secondDoc =
StarDesktop.loadComponentFromUrl("private:factory/scalc","_blank",0,dimArray())
    secondDoc.getSheets().insertNewByName("Price",0)
    selectSheetByName(secondDoc, "Price")
    dispatchURL(secondDoc,".uno:Paste")
    thisComponent.getSheets.removeByName("Price")
    ' save
    secondDoc.storeAsUrl("file:///.../price" &
Str(secondDoc.getSheets.getByName("Price").getCellByPosition(5,3).Value) &
".ods",Array())
    secondDoc.close(true)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to