Dear all,
I have been having a problem and cannot find the solution so far:
I am connecting my input file to a DW that has a very complicated query, therefore, in order to get the detailed invoice information, I need to modify the query each time and denote the Invoice_ID. I would like to have a loop that would:
1. Take single invoice ID from a text input file (total of 71 invoice IDs);
2. Insert a single invoice ID to the query by replacing a specific string ('INVOICE_ID');
3. Retrieve the dataset and save into an excel file, rename the file based on a specific field;
4. Repeat until all invoice IDs are inserted and respective information saved in separate excel files.
I understand that probably the answer is an interactive macro, however, having difficulties in building one. Any help would be much appreciated!