Hi everyone,
I am new to VBA and macros and I recently started a new position and am updating the macros for this document. What happens is I am sent a report and I rename the file to today's date in a folder. There is a VBScript that opens an excel file template that has a Template sheet and a lookup sheet.
The VBScript opens the template and executes the two macros. One of the macros sends an email which is working fine, but the other one copies all the information needed from the report that is renamed to today's date.
Upon completion of the script the error is in column Y of my report because it is a VLOOKUP function that references a lookup sheet that is on the original template.
How do I make it so that sheet remains. I have attached what I believe is needed.
The excel help file has the macro I believe is causing the issue as the other macro sends an email. It also contains the Lookup sheet that gets deleted or not copied.
Any help would be greatly appreciated!
Bookmarks