Thanks, Rudi.
By the way, here was the problem I wanted to solve...
When using Data, Get Data, From File, From Folder--where the source is a range name rather than a Table--the first row of the Source.Name column contains a file name rather than a column title. Therefore, when I Promote Headers, the specific file name becomes a column title. That's not a problem for single use. But if I want to re-use the query, it means that the folder ALWAYS must have that one file name in it so it can be used as the example file.
To handle that problem, I had two choices, one solution would have been to add an example file with no data, a file that always would be in the folder and used as the example. The other solution was to change the contents of the first row in the Source.Name column to the label I wanted for the column title...doing so before I promoted the headers. Because I couldn't find any way to change a single value directly, I created a new column with the data I wanted:
#"Added Index" = Table.AddIndexColumn(#"Expanded Table Column1", "Index", 1, 1),
#"Added Custom" = Table.AddColumn(#"Added Index", "Custom", each if [Index]=1 then "Loc" else [Source.Name]),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Index"}),
Later, I removed the Source.Name column and used my new "Loc" (Location) column instead.
As a consequence, when I copy my M code to Notepad and search for "xls", nothing is ever found. That is, no unique file name ever appears in my code.
Charley