On Friday 08 December 2006 10:21, Werner Tietz wrote:
> Hallo Guido
>
> Guido H. Dirkes schrieb:
> > Dear all,
> >
> > starting to work with OO marcos, I face a problem with the thisComponent
> > while working with the Openoffice Basic editor. I found several examples
> > working with the thisComponent, which will not work if you try to modify
> > and test them from the Openoffice Basic editor. Now I am wondering, if it
> > is possible to modify the thisComponent in a way, that it will face to
> > the
> > spreadsheet "A" instead of the Openoffice Basic editor, while I am trying
> > to debug the macro.
> > Any suggestions welcome ;-)
>
> Ich geh mal davon aus das du der deutschen Sprache mächtig bist, -du
> möchtest auf das Tabellenblatt mit der Bezeichnung "A" zugreifen ?
>
> ..
> myDoc = thisComponent
> mySheet = myDoc.Sheets().getByName("A")
> ...
>
> Gruß Werner

Danke Werner, allerdings ist mein Problem, dass dieser Code aus dem Openoffice 
Basic editor heraus gestartet nicht mehr myDoc auf das Tabellendocument 
zeigt, sondern auf den Basic editor. Wenn ich also ein Marco debuggen möchte, 
habe ich ein kleines Problem... Klar kann ich das Dokument neu öffnen und 
dann damit arbeiten, aber dann habe ich zwei Instanzen offen, was auch nicht 
so recht perfekt ist....

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
---------------------------------------------------------------------------
Dr. Guido H. Dirkes                       Phone: +41 2 27 67 94 54 
CERN                                      Mobile:+41 7 64 87 53 50
Office 598 R-019                          Fax :  +41 2 27 66 94 17
---------------------------------------------------------------------------
Shipping and postal addresses:
For Switzerland:            |             For FRANCE:
   CERN     Organisation Européenne pour la Recherche Nucléaire
                       Guido Dirkes
                     Office 598 R-019
CH-1211 Genève 23           |             F-01631 CERN Cedex
Switzerland                 |             France
---------------------------------------------------------------------------
Dr Guido H. Dirkes                        Universität Karlsruhe (TH)
Forschungszentrum Karlsruhe       -o)     
IK/IEKP 401 Zimmer 317            /\\     Phone: +49-7247-82-4254 (office)
Hermann-von-Helmholtz-Platz 1     \ v     Phone: +49-7247-82-3237 (lab)
D-76344 Eggenstein-Leopoldshafe   - -     FAX:   +49-7247-82-3414
----------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Antwort per Email an