,Power Query loads data from hidden sheets just as they were visible sheets. There's no difference whatsoever. The only difference is the user interface:
When you use the Get Data / From File / From Workbook -dialog the dialog only show the visible sheets. However, if you select one of the visible sheets and take a look at the Applied Steps, the Source step is showing all the sheets there are. Just change the Navigation step to get data from the sheet(s) you're interested in.
(MyFilePath as text)=>
let
Source = Excel.Workbook(File.Contents(MyFilePath), null, true)
in
Source
I was just wondering if during the loading data phase, the power query can show me all the tabs including hidden tabs in an excel workbook. Right now all I'm seeing are the visible tabs. If I wanna use your method I think I need to know the names of different tabs in the first place, which means I have to open one of the workbooks and find out the names myselfI turned the Source step into a function:
If you're loading data from all the files in a folder then MyFilePath = [Folder Path] & [Name] (i.e. full file path + the workbook name).Power Query:(MyFilePath as text)=> let Source = Excel.Workbook(File.Contents(MyFilePath), null, true) in Source