Ennio-Sr wrote:

Hi all,

After  grouping seven different spreadsheets in a single
'multiplesheets' document I'm at a loss, now, being no longer able to
use the common library macros: for them to work as they did before
I should be able to make the macro 'know' which sheet it's acting on,
so that it can choose the appropriate parameters.

Perusing into the docs I discovered the 'getActiveSheet()' _thing_ (in
com.sun.star.sheet) but could not find any example of its use I could
understand or, at least, make work ... ;-(

As I would like to test it now (and not after having fully understood how the whole 'API affair' works, which may well take some very long
time) could some of you suggest some good example?

Regards,
        Ennio.
If I remember correctly, you own a copy of my book.
Look at page 249, 260, and 261 for examples.
Look at Table 52 on Page 372 for a description.

Now, for a test of your understanding of how things are setup, read the first paragraph on page 190. Also, read the fifth paragraph on the same page. The real meat of what you want to know, however, starts in Chapter 12. Just start reading. It is again explained in paragraph three.

After you understand the usage of the controller, it becomes obvious why you ask the current controller for the view cursor, the active sheet, etc.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm
Free Info:  http://www.pitonyak.org/oo.php


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

Reply via email to