# -*- coding: iso-8859-1 -*- #. // _by_IntToRange.py #. // Convertit un range numérique en cellules. from _by_IntToCell import by_IntToCell # // Transforme une cellule Row, Col en caractère. def by_IntToRange( nRowFirst, nColFirst, nRowLast = None, nColLast = None ): if nRowLast is None: nRowLast = nRowFirst #. endif if nColLast is None: nColLast = nColFirst #. endif return by_IntToCell( nRowFirst, nColFirst ) + ":" + by_IntToCell( nRowLast, nColLast ) ''' Dernière modification : 2022-02-24 [Exemple] import sys sys.path.append( "modules" ) from _by_IntToRange import by_IntToRange # // Convertit un range numérique en cellules. print() print( "by_IntToRange( 2, 1, 4, 6 ) :", by_IntToRange( 2, 1, 4, 6 ) ) print( "by_IntToRange( 2, 1, 4 ) :", by_IntToRange( 2, 1, 4 ) ) print( "by_IntToRange( 2, 1 ) :", by_IntToRange( 2, 1 ) ) [/Exemple] '''