Forum Discussion

snandy2011's avatar
snandy2011
Helper IV
7 years ago
Solved

Excel.Workbook function not working

Hi, I am just importing multiple excel file from a folder.For that, I have wriiten a simple M function Excel.Workbook, but it does not work. It shows "The formula is incomplete". See the below scre...
  • MFelix's avatar
    MFelix
    7 years ago

    snandy2011 ,

     

    This as to do with the way you setup your function, if you do it from scratch you need to adjust the way of working.

     

    When having a link from a folder if you notice the first step on the function is what you refer:

     

      Source = Excel.Workbook([content], null, true),

    However in the combination of the files the first step is:

    = Folder.Files("C:\Folder")

    And you invoke the custom function from the C:\Folder.

     

    So you are refering the folder path, however this depends on how you setup your function.

     

    Regards,

    MFelix