Ask Your Question

Paste copied text into a Text Table Cell [Solved] [closed]

asked 2015-12-21 03:50:49 +0200

macroman gravatar image

Hi there,

I seem to be having trouble driving the table cell cursor. For example if I want to paste some copied text into cell 4,2 of my text table should this code work?

    Cursor = Texttables(2).getcellbyPosition(4, 2).createTextCursor()
        dispatcher.executeDispatch(Frame, ".uno:Paste", "", 0, Array())


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-12 02:52:13.455560

1 Answer

Sort by » oldest newest most voted

answered 2015-12-21 03:50:01 +0200

macroman gravatar image

Solved. Needed to select the desired location:

Range = TemplateDoc.TextTables(2).getCellByPosition(4, 2)
dispatcher.executeDispatch(Frame, ".uno:Paste", "", 0, Array())
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-21 03:16:58 +0200

Seen: 409 times

Last updated: Dec 21 '15