On an Excel file I import a table from a database with a SQL command.
I filter the information I need with a SQL query in the "command text" field in the connection properties.
So I was wondering if it was possible to make this Command Text editable,
Instead of writing SELECT dbo_FloatingRates, I could write SELECT [B5] and have it replace [B5] with the contents of that cell.
I tried to go through vba but I couldn't, how would that be possible?
Translated with www.DeepL.com/Translator (free version)