BASIC runtime error. Sub-procedure or function procedure not defined
I tried the following test macro in libreoffice, but get an error:
"BASIC runtime error. Sub-procedure or function procedure not defined"
Function Test(x)
Test=Round(x^(0.5),1)
End Function
How can I fix it?