OpenOffice使いがExcelVBAの参考書を買っていけない話
openoffice macro cell 値 取得
Formulaプロパティだった

行、列指定が逆
OpenOfficeは0から、ExcelVBAは1から数える
文字列はObject型のFormulaプロパティ
数値はObject型のValueプロパティ
32bitのjreを別途インストールして、オプションで指定

Sub message
Dim oDoc As Object
Dim oSheet As Object
Dim oCell As Object
Dim s As String
oDoc = ThisComponent
oSheet = oDoc.Sheets(0)
oCell = oSheet.getCellByPosition(20, 0)
s = oCell.Formula
MsgBox s
End Sub