Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
Frame = WriterDoc.CurrentController.Frame
Frame2 = CalcDoc.CurrentController.Frame

  dim args1(0) as new com.sun.star.beans.PropertyValue
  args1(0).Name = "ToPoint"
  args1(0).Value = "$C$4"
  dispatcher.executeDispatch(Frame2, ".uno:GoToCell", "", 0, args1())
  dispatcher.executeDispatch(Frame2, ".uno:Copy", "", 0, Array())

  dim args2(0) as new com.sun.star.beans.PropertyValue
  args2(0).Name = "SelectedFormat"
  args2(0).Value = 10
  dispatcher.executeDispatch(Frame, ".uno:ClipboardFormatItems", "", 0, args2())