lazkopat85 Newbie

Joined: 31 Oct 2010 Posts: 1
|
Posted: Sun Oct 31, 2010 3:35 am Post subject: OO Writer an VBA |
|
|
Hallo,
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 ooDoc
.store
.Open
End With
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  |
|