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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to