Paste copied text into a Text Table Cell [Solved]

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())

Thanks!

Solved. Needed to select the desired location:

Range = TemplateDoc.TextTables(2).getCellByPosition(4, 2)
	TemplateDoc.getCurrentController.select(Range)
dispatcher.executeDispatch(Frame, ".uno:Paste", "", 0, Array())