I am looking to create a macro where the user can specify a 2 letter code which determines what table in a SQL database to download data from. I have a database that contains multiple tables with the following naming structure 'Info_XX' where XX is a two digit code.
I have set up a simple workflow where I can extract data from a chosen SQL table and it will perform calculations and output it. However, I want to turn this into a macro where the user only has to specify the two digit code, and it will run the macro downloading from that specific table in SQL. Is this possible?
e.g. A simple text input of say "UK", and then the macro runs and downloads data from the SQL table Info_UK, and outputs the relevant info.