Apache OpenOffice (AOO) Bugzilla – Issue 38443
Dispatcher does not select table row in Basic macro
Last modified: 2013-02-24 21:10:02 UTC
When recording a macro that includes a table>select>row, the macro recorder creates the following line in Basic: dispatcher.executeDispatch(document, ".uno:EntireRow", "", 0, Array()) However, when replaying the macro that was just recorded, the above line is not run. In the attached document, the string "**" is searched for. The the table that the selected string is in is selected using table>select>row. Then the Cut button is pressed to cut the table row. When recording, the attached macro is created. However, when run, the above line is ignored, and only the search string "**" is cut using the macro.
Created attachment 20115 [details] test writer document
Created attachment 20116 [details] Macro created by macro recorder
sw->aaronforjesus: your second dispatch is called before the first one is finished and so doesn't have the effect expected by you ... added a wait 500 after the first dispatch call and all worked fine for me.
Thanks for the tip!
closing as worksforme