Skip to main content
Question

from 1 excel template to multiple sheets

  • November 9, 2020
  • 1 reply
  • 59 views

alc33
Contributor
Forum|alt.badge.img+10
  • Contributor

Hi!

I would like to duplicate my template (excel) to create multiple sheets based on an attribute on my datas. For example, when my attribute = sheetA, all the datas concerned go to named ranges on the sheetA.

At the end I have one file with multiple sheets.

 

But I saw this sentence :

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/xlsx/XLSX_writer.htm

"Named ranges that exist on the template sheet are not duplicated."

 

So I thought to use feature writer to write each sheet independantly with the same name sheet and then use feature reader + writer to group all the files in one and rename the sheet with the good value.

This solution is a problem for me because I would like to delete the intermediates files automatically but FME can't do that.

 

I'm not used to write on excel so it became a little complicated for me.

 

Can you help me?

 

Thanks!

 

1 reply

milo89
Enthusiast
Forum|alt.badge.img+16
  • Enthusiast
  • December 7, 2020

Hi @alc33​,

I would recommend having a look at Feature Type Fanout using the attribute which contains the sheet ID.

 

Hope this helps.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings