xl icon indicating copy to clipboard operation
xl copied to clipboard

Iterate the sheets

Open Luteva-ssh opened this issue 1 year ago • 1 comments

I would like to iterate all the sheets in a workbook. something like:

for sheet in workbook.sheets:
  .... do something....

the workbook has a sheets seq, but it is not marked 'public'

  XlWorkbook* = ref object
    ## Represent a workbook.
    contents: Table[string, XlObject]
    sheets: seq[XlSheet]

Is there any reason why the property sheets in XlWorkbook is private? Or may I just change that (and create a 'pr')? Thx

Luteva-ssh avatar Mar 02 '23 13:03 Luteva-ssh