using user-defined basic library in a calc document
Posted: Sat Apr 05, 2008 6:17 pm
Hi,
I've got a basic macro library "gammatest" which has the modules "Distributions", "gamma" and "igamma". The modules contain several functions, for example a MYGAMMA(..).
This library is inside a document. In the "Standard"-library of the document there is the macro
This macro is assigned to the event "OpenDocument". I can see that the library "gammatest" is loaded. When I newly use the function "=MYGAMMA(..)" in a cell, all works as expected. But when I close and reload the document, the cell shows a "'NAME?" error. If I enter edit mode, add or remove a space and confirm, the function will work again.
What have I to do, that the functions work immediately after opening the document? I do not want to move them to the "Standard" library, because from there I cannot export them. Does exist something like a "refresh"? An "Update all" does not work.
kind regards
Regina
I've got a basic macro library "gammatest" which has the modules "Distributions", "gamma" and "igamma". The modules contain several functions, for example a MYGAMMA(..).
This library is inside a document. In the "Standard"-library of the document there is the macro
Code: Select all
Sub Main
If NOT BasicLibraries.isLibraryLoaded("gammatest") Then
BasicLibraries.LoadLibrary("gammatest")
End If
End Sub
What have I to do, that the functions work immediately after opening the document? I do not want to move them to the "Standard" library, because from there I cannot export them. Does exist something like a "refresh"? An "Update all" does not work.
kind regards
Regina