Mathias Bauer ha scritto:

hi Matias

I have a complex (and wobbly) macro that copy some tables from a document to another.
(The macro use dispatch; they are alternatives?)
The tables contains links and in course of action OOo propose some pestering alert windows ...zot...
Can I avoid this windows alert?

Sorry... I forget to specify... are Calc documents, and the table are in truth Calc sheets (and may be very big sheets...)
(Sorry for semantic inaccurance e for my bad english... )

Dispatch macros are meant to replay the UI functionality and so they are
allowed to show error messages or warnings. If you don't want to see
them you have to use the "core" API.

Just in the afternoon I found a codesnippet
(http://codesnippets.services.openoffice.org/Calc/Calc.CopySheet.snip)
but seems a strange approach... (Im not a proggrammer...)
Anyway with one sheet to new doc work fine... I will try with multiple sheets


If you are using OOo 2.1 you can perhaps use the "internal clipboard"
API. Select the problematic table and execute the following macro:
> ...zot...
Does that work better?

mmm... my estension must run on all release from 2.0 (the debian sid still have 2.0.4 release)... But surely I will try the code... the future are just today (and the years run fast.. :-) )

BTW: this macro works with whatever content you select in Writer. It
does exactly the same thing like the copy and paste functions but
without touching the clipboard.

Dubt: the code is good also for Calc?

thank's for help

Bart

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

Reply via email to