Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index



Hallo,

mit Hilfe von :
http://www.wollmux.net/wiki/images/f/f9/Makro_Kochbuch.pdf (seite 176)


ich finde nun prinzipiell die Textstelle.

Code s.u.

Ich verstehe aber findnext(xtextrange).End nicht

Was soll dieses ".End" bedeuten?

Danke für jeden Tipp!

lG
Klaus




REM  *****  BASIC  *****

Option Explicit
public const VON as string = "*"
public const BIS as string = "~"

Sub formatiereMyTextstellen
        dim oDoc as object 'xDocument
        dim osdStart as object 'xSearchDescriptor
        dim otrStart as object 'xTextRange
        dim osdEnd as object 'xSearchDescriptor
        dim otrEnd as object 'xTextRange
                
        oDoc = thisComponent
        
        osdStart = oDoc.createSearchDescriptor()
        osdStart.setSearchString(VON)
        otrStart = oDoc.findFirst(osdStart)
        if IsNull(otrStart) then exit sub 'stop wenn kein ergebnis
        
        osdEnd = oDoc.createSearchDescriptor()  
        osdEnd.setSearchString(BIS)
        otrEnd = oDoc.findFirst(osdEnd)
        if IsNull(otrEnd) then exit sub 'stop, wenn kein
        
        otrStart.gotoRange(oDoc.findnext(otrStart.End, osdEnd).End,true)
        msgbox otrStart.getString()

End Sub



-- 
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.