@@ -633,7 +633,7 @@ def stringify(self, tokens, workbook):
633
633
634
634
supporting_link , first_sheet_idx , last_sheet_idx = workbook .resolve_extern_sheet_id (self .extern_sheet_idx )
635
635
address = None
636
- if supporting_link .brt == rt .SUP_SAME or supporting_link . brt == rt . SUP_SELF :
636
+ if supporting_link .brt in rt ._SUP_LINK_TYPES :
637
637
if first_sheet_idx == last_sheet_idx and first_sheet_idx >= 0 :
638
638
address = workbook .sheets [first_sheet_idx ].name + '!' + cell_add
639
639
elif first_sheet_idx == last_sheet_idx and first_sheet_idx == - 1 :
@@ -698,13 +698,16 @@ def stringify(self, tokens, workbook):
698
698
,self .last_row_rel )
699
699
supporting_link , first_sheet_idx , last_sheet_idx = workbook .resolve_extern_sheet_id (self .extern_sheet_idx )
700
700
701
+ cell_add_first = self .cell_address (self .first_col , self .first_row , self .first_col_rel , self .first_row_rel )
702
+ cell_add_last = self .cell_address (self .last_col , self .last_row , self .last_col_rel , self .last_row_rel )
703
+
701
704
address = None
702
- if supporting_link .brt == rt .SUP_SAME or supporting_link . brt == rt . SUP_SELF :
705
+ if supporting_link .brt in rt ._SUP_LINK_TYPES :
703
706
if first_sheet_idx == last_sheet_idx and first_sheet_idx >= 0 :
704
707
address = workbook .sheets [first_sheet_idx ].name + '!' + first + ':' + last
705
708
706
709
if address is None :
707
- print ("AreaPtg External Address Not Supported {0} {1} {2}" .format (cell_add , first_sheet_idx , last_sheet_idx ))
710
+ print ("AreaPtg External Address Not Supported {0}: {1} {2} {3} " .format (cell_add_first , cell_add_last , first_sheet_idx , last_sheet_idx ))
708
711
#raise NotImplementedError('External address not supported')
709
712
710
713
return address
0 commit comments