How to convert numbered/bulleted lists to plain text in Writer?

asked 2015-05-26 15:01:39 +0100

arslan gravatar image

updated 2015-05-26 15:10:26 +0100

When preparing documents obtained by OCR for e-books, I often get bulleted lists which I need to convert to plain text (that is, to transform automatic bulleted dashes into plain text dashes -- just turning off the bulleted list would make dashes disappear). I have been struggling with this in LibreOffice Writer, while it is easily solved in Word with a simple macro:

Sub Auto_Format_convert_list_numbers() ' ' convert_list_numbers Macro ' Macro created 10/8/08 by WJ Shack ' ActiveDocument.ConvertNumbersToText End Sub

However, that macro won’t work in Writer -- I get "BASIC runtime error. Object variable not set", with the little red arrow pointing to ActiveDocument.ConvertNumbersToText.

Any idea how to modify the macro to work in Writer?


edit retag flag offensive close merge delete