Hi I am trying to automate a process from which i copy a sheet ("NA") from a workbook (released daily with date as its name) and paste it into an existing workbook ("Overflow Log.xlsx"). Here is the code I have so far.
The code opens the existing file (overflow log) without any issues but fails at "ThisWorkbook.Sheets("NA").Copy After:=wbOpen.Sheets("Graph")" giving me Runtime error 9 "subscript out of range". Note: the copied sheet needs to go after or before a sheet named "Graph" in the Overflow Log workbook.
any help will be appreciated. Thanks
Bookmarks