matrix = Array(_
...
Array ("überragend"," outstanding "),_
...
oReplace = oDoc.createReplaceDescriptor()
For i= Lbound(matrix,1) To Ubound(matrix,1)
oReplace.SearchString = matrix(i)(0) 'Regular expression. Match any text
oReplace.ReplaceString = matrix(i)(1) 'Note the & places the found text back
oReplace.SearchRegularExpression=False 'Use regular expressions
oReplace.SearchCaseSensitive = False
oReplace.searchAll=True 'Do the entire document
oDoc.replaceAll(oReplace)
Next i
Last edited by BubikolRamios on Sun Jun 14, 2020 2:34 pm, edited 1 time in total.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
MS docs before Office 97 may have different encodings. When you have to open such things:
menu:File>Open...
Choose file type "MS Word 6.0 / 95 (*.doc)"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice