Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def getLastUsedCell(oSheet):
  2.     '''
  3.    Restitusce l'indirizzo dell'ultima cella usata
  4.    in forma di oggetto
  5.    '''
  6.     oCell = oSheet.getCellByPosition(0, 0)
  7.     oCursor = oSheet.createCursorByRange(oCell)
  8.     oCursor.gotoEndOfUsedArea(True)
  9.     aAddress = oCursor.RangeAddress
  10.     return aAddress#.EndColumn .EndRow)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement