Forum Discussion

aflesner's avatar
aflesner
Copper Contributor
Apr 29, 2023

Convert CSV to Excel Office Script

I created the convert csv to excel office script from the template. I used it in power automate to convert all csv files in a folder to excel. It worked great until today now I am receiving and error "selectedsheet not defined". How can I fix this?

22 Replies

  • Lorenzo's avatar
    Lorenzo
    Silver Contributor

    aflesner 

    Suggestion: Post your issue on the dedicated https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity with your complete script

    • aflesner's avatar
      aflesner
      Copper Contributor

      SergeiBaklan 

      I think that selecting the sheet not by the name "Sheet1" but by position would fix this. How would that code be written?

      • peiyezhu's avatar
        peiyezhu
        Bronze Contributor
        convert an Excel sheet to csv?
        or Csv 2 sheet?

Resources