Page 1 of 1

Copying a table cell to clipboard

PostPosted: Thu Jun 18, 2015 6:45 pm
by andyonio
I need to copy the content of a table cell, that is displayed in a form control, to the clipboard, so that I can paste it to a Word page.
Any help?
Thanks

Re: Copying a table cell to clipboard

PostPosted: Thu Jun 18, 2015 6:46 pm
by RoryOF
Does selecting it and Ctrl C not work?

Re: Copying a table cell to clipboard

PostPosted: Thu Jun 18, 2015 7:02 pm
by andyonio
It works, but...
As a matter of fact, I need a pushbutton that copies the content of several comboboxes or listboxes , with their labels, in a queary to the clipboard.
Then i could paste it to the page of another running application I cannot modify, but that accepts the pasted text.
Can a report be changed to plain text and pasted to clipboard?
Thanks

Re: Copying a table cell to clipboard

PostPosted: Fri Jun 19, 2015 3:52 pm
by MTP
If your report is based on a query, you can import the query results to Calc: [Tutorial] Using registered datasources in Calc. In Calc, it would be easier to highlight all the content plus the labels for copying.

Short of that, I believe you'd need a macro. Definitely possible, but comes with a steep learning curve. If you want to tackle the macro way, I like sheepdogguides to start with and Andrew Pitonyak's OpenOffice Macros Explained as a resource for more advanced stuff.