| View previous topic :: View next topic |
| Author |
Message |
Glenn1000 Newbie

Joined: 16 Jun 2005 Posts: 1
|
Posted: Thu Jun 16, 2005 5:42 pm Post subject: CALC: Worksheet change event & Calc access to macros |
|
|
I am en engineer migrating some macros from VB to OO. Generally everything has gone OK except for two problems:
1. In Excel we have spreadhseet which would call a macro whenever the spreadsheet data was changed. This macro would then check what was changed and if it was relevant perform some calculations and write the results back to the spreadsheet. In Calc I can find no similar event which a macro can be assigned to. Any suggestions?
2. We have a number of common macros used by a number of spreadsheets - these have been stored in a library in My Macros. When a spreadsheet opens it runs a macro which loads the library. The macros in the library are then exposed OK to basic macros in the spreadsheet, but don't seem to be available to the spreadsheet cell as a formula. Any suggestions as to how these can be exposed? |
|
| Back to top |
|
 |
ms777 Super User


Joined: 07 Feb 2004 Posts: 1355
|
Posted: Thu Jun 16, 2005 11:57 pm Post subject: |
|
|
| Quote: | | 1. In Excel we have spreadhseet which would call a macro whenever the spreadsheet data was changed. This macro would then check what was changed and if it was relevant perform some calculations and write the results back to the spreadsheet. In Calc I can find no similar event which a macro can be assigned to. Any suggestions? |
I believe the nearest UNO API functionality is the ModifyListener. See this thread http://www.oooforum.org/forum/viewtopic.phtml?t=6773
ms777 |
|
| Back to top |
|
 |
|