Created
June 21, 2012 01:06
-
-
Save vndmtrx/2963269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function busca_ultimo_registro(ByVal plan as String) as Object | |
Dim rows as Object | |
Dim i as Integer | |
rows = ThisComponent.getSheets().getByName(plan).getRows() | |
i = 0 | |
Do | |
i = i + 1 | |
Loop while rows.getByIndex(i).getCellByPosition(0,0).String <> "" | |
i = i - 1 | |
busca_ultimo_registro() = rows.getByIndex(i) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment