Good morning, Gurus.
I run a daily report in which I download data from another source into an excel file, then manipulate the data, (copy and paste), to match existing row headings in my main report. I have created a macro which does this beautifully, with one small problem. Since the name of the imported file changes slightly from day to day, just a number in the file, I have to edit my macro daily to reflect this new file name before running my macro.
Here is the macro, with the part containing the workbook filename highlighted in red. This workbook will always be open when I run my macro, and if necessary, I can assure ONLY this workbook and my main workbook file, (that I copy to), will be the only 2 Excel files open. The name of the file I download always comes in as "ppweb[#].xls", with the # being a single digit number from 1 to 9.
Thanks in advance for any help you can offer.
Jerry
Bookmarks