Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index

This function seems to work fine:
Public Function GetCell(oSheet As, _
                        lRow As Long, _
                        lCol As Long) As
    GetCell=oSheet.getCellByPosition(lCol, lRow)
End Function

For instance, this works fine:
Dim oLastDateCell As Object
oLastDateCell=GetCell(oSheet, lLastRow, ColDate)

No errors what so ever.
But, on the other hand, this throws an error:
Dim oLastDateCell As
oLastDateCell=GetCell(oSheet, lLastRow, ColDate) ' oSheet and more are
correctly defined someplace else.

Error message:
”BASIC syntax error.
Data type is unknown”

So it works as a return type for my GetCell function, but when defining a
variable, it's suddenly unknown? Can someone explain this?

Why I use experimental mode? Because I want to learn how it works plus a
few more reasons that are just as irrelevant.

Kind regards

Johnny Rosenberg

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.