• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Excel vba conversion to Librecalc

Redrabbit

New Member
I am trying to convert my Excel VBA macro for finding next free cell into Librecalc but It gives an error " unknow data type range".
>>> use code-tags <<<
Code:
Sub LastRow()
    Dim rngLast As Range

    With ThisWorkbook.Worksheets("Sheet1")
        If .Range("A1").Value = "" Then
            Set rngLast = .Range("A1")
        Else
            Set rngLast = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0)
        End If
        MsgBox "Next blank row is " & rngLast.Address
    End With

End Sub
I would be grateful for help on the conversion please.
Regards John
 
Last edited by a moderator:

Redrabbit

If test only Your above code then
... for me,
it runs as smooth as possible
without any errors.

Do You have there something else?
... or what would be ... Librecalc?
 
Back
Top