def rangename3drel(book, ref3d, browx=None, bcolx=None, r1c1=0):
 coords = ref3d.coords
 relflags = ref3d.relflags
 shdesc = sheetrangerel(book, coords[:2], relflags[:2])
 rngdesc = rangename2drel(coords[2:6], relflags[2:6], browx, bcolx, r1c1)
 if (not shdesc):
  return rngdesc
 return ('%s!%s' % (shdesc, rngdesc))

def rangename3drel ( book , ref3d , browx = None , bcolx = None , r1c1 = 0 ) : coords = ref3d . coords relflags = ref3d . relflags shdesc = sheetrangerel ( book , coords [ : 2 ] , relflags [ : 2 ] ) rngdesc = rangename2drel ( coords [ 2 : 6 ] , relflags [ 2 : 6 ] , browx , bcolx , r1c1 ) if ( not shdesc ) : return rngdesc return ( '%s!%s' % ( shdesc , rngdesc ) )
utility function: ref3d(coords= .