Search within text range

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Rocko
Posts: 2
Joined: Wed Nov 05, 2008 2:39 am

Search within text range

Post by Rocko »

I'm programming on VB6. I use findFirst to find some text in a document and get a TextRange as a result. Now I want to search within that text range. How do I do it?

IE:

Set oSearchDescriptor = oDoc.createSearchDescriptor()
oSearchDescriptor.SearchString = "SOMETHING"
Dim oMatch As Variant
Set oMatch = oDoc.findFirst(oSearchDescriptor)

oMatch <--- Find something here. I need another text range as a result

Thanks for the help.
OOo 3.0.X on Ms Windows XP
Post Reply