I have probably done this before - but I have been bashing my head (figuratively) for 2 hours now.
I’m sure the solution is rather simple.
Update:
Unresolved: The things I have tried below didn’t work because there were always undeclared variables - or their “protection level” prevented the declared variables from making the below work. I have yet to confirm.
But I think selecting “Has Headers” and than selecting a header - even though the range does not match the row the Header is in, still works for some reason. (this is in a ForEachRow activity)
Example. Range set to “Sheet2” - used to find the “FindValues” and their “ReplaceValues”
Header for the Range that the “FindValues” and their “ReplaceValues” are used in, is Excel.Sheet(“Sheet1”).Range(“Date”) - but “Date” is in the 4th row, unlike the headers for Sheet2.
I’ll mark vrdabberu’s solution as the solution - because it should work - I just wasn’t able to make it do so.