Basically, I will need to preform an operation on the word-count of various documents. For my test run, I wrote the following (to be changed later):
Code: Select all
Function WordCount(Optional x)
Dim WCValue as Single
WCValue = 0.0
If NOT IsMissing(x) Then
If NOT IsArray(x) Then
WCValue = x^.5
End If
End If
WordCount = WCValue
End Function
Then I got the 2nd error seen on the page "https://wiki.openoffice.org/wiki/Docume ... _functions", ("This document contains macros"). I enabled Macros through "Tools > Macros > Organize Macros > OpenOffice.org Basic", but the function was still broken.
From there I could not figure out from the instructions how to get the function working again.
Any advice?