Hi there,
I have a named range for a single cell called SrcSheet. If this is not populated I want to import the first (furthest left) tab of a workbook via Power Query or else import the sheet name that's been entered. I have this but it keeps erroring out:
If anyone could please provide me the correct syntax it would be greatly appreciated.
Regards,
Robert
I have a named range for a single cell called SrcSheet. If this is not populated I want to import the first (furthest left) tab of a workbook via Power Query or else import the sheet name that's been entered. I have this but it keeps erroring out:
Power Query:
#"Promoted Headers" = Table.PromoteHeaders(if(Text.Length(Excel.CurrentWorkbook(){[Name="SrcSheet"]}[Content]{0}[Column1]))=0 then Source{0}[Data] else Text.From.Excel.CurrentWorkbook(){[Name="SrcSheet"]}[Content]{0}[Column1]))
If anyone could please provide me the correct syntax it would be greatly appreciated.
Regards,
Robert