b***@bugs.documentfoundation.org
2016-09-12 14:03:13 UTC
https://bugs.documentfoundation.org/show_bug.cgi?id=102078
Bug ID: 102078
Summary: Excel XLSM import with VBA: calling function fails
with bogus "Object variable not set"
Product: LibreOffice
Version: 5.2.1.2 rc
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: filter:xlsx
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@physik.fu-berlin.de
Issue related to the same file as bug 102075, namely attachment 127275
[details] [Excel XLSM file (XLS with macros)]
If one changes the "Sub Auswerten()" to use the lines after "'LO:" instead of
the lines after "'MSO" - and then tries to run it, it fails with the odd error
message:
BASIC runtime error.
'91'
Object variable not set.
It stops at the line:
Function getColNum(col, offset) As String
If one sets the break point there and hovers over "col" and "offset", LO shows:
"col=<missing parameter>" and "offset=<missing parameter>"
The caller is:
colNo2 = getColNum(colNo2, deltaCol)
and hovering over the LHS shows: "colNo2=H" and on the RHS: "colNo2=H" and
"deltaCol=3". If one now clicks "Step into", hovering over "offset" shows
"offset=3" but hovering over "col" doesn't show any tool tip. Clicking "Step
into" again, shows the error message from above.
Expected:
The function call works, passing successfully the string argument (and the
numeric argument).
Bug ID: 102078
Summary: Excel XLSM import with VBA: calling function fails
with bogus "Object variable not set"
Product: LibreOffice
Version: 5.2.1.2 rc
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: filter:xlsx
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-***@lists.freedesktop.org
Reporter: ***@physik.fu-berlin.de
Issue related to the same file as bug 102075, namely attachment 127275
[details] [Excel XLSM file (XLS with macros)]
If one changes the "Sub Auswerten()" to use the lines after "'LO:" instead of
the lines after "'MSO" - and then tries to run it, it fails with the odd error
message:
BASIC runtime error.
'91'
Object variable not set.
It stops at the line:
Function getColNum(col, offset) As String
If one sets the break point there and hovers over "col" and "offset", LO shows:
"col=<missing parameter>" and "offset=<missing parameter>"
The caller is:
colNo2 = getColNum(colNo2, deltaCol)
and hovering over the LHS shows: "colNo2=H" and on the RHS: "colNo2=H" and
"deltaCol=3". If one now clicks "Step into", hovering over "offset" shows
"offset=3" but hovering over "col" doesn't show any tool tip. Clicking "Step
into" again, shows the error message from above.
Expected:
The function call works, passing successfully the string argument (and the
numeric argument).
--
You are receiving this mail because:
You are the assignee for the bug.
You are receiving this mail because:
You are the assignee for the bug.