Dears,
I have a very stupid question. I tried to find a solution using search function but I didn't find anything
My question is:
How can I modify this code
considering that I have 2 files. My source file.xlsm where I have data and, in the same directory, an xls file where I set-up the query. I would like to configure the query to use a relative link and not all the path to the file.
Thanks a lot in advance for support...
I have a very stupid question. I tried to find a solution using search function but I didn't find anything
My question is:
How can I modify this code
Code:
let Source = Excel.Workbook(File.Contents("C:\Users\ymitio\Desktop\...\my source file.xlsm"), null, true),
T1_Sheet = Source{[Item="T1",Kind="Sheet"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(T1_Sheet,{{"Column1", type text}, {"Column2", type text}, {"Column3", type any}, {"Column4", type text}, {"Column5", type text}, {"Column6", type any}, {"Column7", type text}, {"Column8", type text}, {"Column9", type any}, {"Column10", type any}, {"Column11", type any}, {"Column12", type any}, {"Column13", type any}, {"Column14", type text}, {"Column15", type any}, {"Column16", type any}, {"Column17", type text}, {"Column18", type any}, {"Column19", type any}, {"Column20", type text}, {"Column21", type any}, {"Column22", type any}, {"Column23", type text}, {"Column24", type any}, {"Column25", type any}, {"Column26", type text}, {"Column27", type any}, {"Column28", type any}, {"Column29", type text}, {"Column30", type any}, {"Column31", type any}, {"Column32", type any}, {"Column33", type any}, {"Column34", type any}, {"Column35", type any}, {"Column36", type any}, {"Column37", type any}, {"Column38", type any}, {"Column39", type any}, {"Column40", type text}, {"Column41", type text}, {"Column42", type any}, {"Column43", type any}, {"Column44", type any}, {"Column45", type any}, {"Column46", type any}, {"Column47", type any}, {"Column48", type any}, {"Column49", type any}, {"Column50", type any}, {"Column51", type any}, {"Column52", type any}, {"Column53", type any}, {"Column54", type any}, {"Column55", type any}, {"Column56", type any}, {"Column57", type any}, {"Column58", type any},
....
#"Filtered Rows"
considering that I have 2 files. My source file.xlsm where I have data and, in the same directory, an xls file where I set-up the query. I would like to configure the query to use a relative link and not all the path to the file.
Thanks a lot in advance for support...