We received a file from a consultant that they need us to refresh daily. It contains a macro that allows the file to update based on some source data that is stored in a TEXT file.
The macro code is as follows
Sheets("AP_AR").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
When it is run, Excel opens an Import Text File Prompt, which we then need to point at the directory where AP_AR.txt exists.
Rather then have to do this, isn't there a much easier way to code this so that when it is run the VBA already has the path and just uses those paths to update. There are a total of 10 sheets in the Macro, so to have it automated would be very helpful.
Thank you in advance.