I have an excel file which have multiple sheets, Unit_1, Unit_2... The form of the sheets is identical but the data varies. On each sheet, there is named range called "SIGNALS" which defines the area "A1:C4. I want to access the data by referring to the named range while looping through the sheets.
I'm using the function from here as a base to access to the data, but the named range reference does not work when I'm trying to define the sheet as well. https://stackoverflow.com/a/45554742/7661466
If I define the range_name as "SIGNALS", I get the data from the Unit_1 sheet, I assume because the it is active by default.
If I define it as "Unit_2!A1:C4", I get the data from Unit_2 sheet as expected.
If I define it for example as "Unit_1!SIGNALS" I get an ValueError: SIGNALS is not a valid coordinate or range.
How should I refer to a named range in certain sheet?
For an example, a table for a "Unit_1" sheet.
