Joined: 31 Oct 2010
|Posted: Sun Oct 31, 2010 3:35 am Post subject: OO Writer an VBA
Im new in Openoffice and i have a question.
I want open a . doc file with VBA and search for text in the document and replace it. My Code:
datname = "file:///" & NeueVorlage
Set ooApp = CreateObject("com.sun.star.ServiceManager")
Set ooDesk = ooApp.createInstance("com.sun.star.frame.Desktop")
Set ooDoc = ooDesk.loadComponentFromURL(datname, "_blank", 0, args)
With this Code can I open the Document with OO Writer, but how can I search for a text and replace it?
Sorry for my bad english