Hi Robert, thanks a lot for your examinations. Robert Großkopf wrote
... but you will create a string of this. This coudn't work. What do you wan't to get from the object?
You are right, it's only the beginning of the function. I tried to strip it down to a minimal example. The string is used to assign the file URL to a GraphicObject which is created afterwards: oTextGraphic = oDoc.createInstance("com.sun.star.text.GraphicObject") oTextGraphic.GraphicURL = sNewURL The whole function can be found here (starting with line 235): https://github.com/openlilylib/LO-ly/blob/master/extension/OOoLilyPond/Tools.xba Up to LO 6.0 this worked fine. In LO 6.1, I commented out the suspect lines step-by-step to find the one causing the error. (The thing is, I don't understand every step. The original developer of the project has retired and I'm continuing his work...) Cheers, Klaus -- Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Users-f1639498.html -- To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette List archive: https://listarchives.libreoffice.org/global/users/ Privacy Policy: https://www.documentfoundation.org/privacy