I have a VBA script that adds sheets to around 500 excel files. I had no problems running the VBA script and adding simple sheets, but when I try to add a sheet with VBA scr
I have finally solved my problem...
The solution was to add a line of code:
Application.Wait (Now + TimeValue("0:00:01"))
after the line:
sh.Copy After:=wb.Sheets(wb.Sheets.Count)
which allowed time to copy the sheet to the new excel file.
So far it has been working like a charm.
I want to thank everyone that helped me with this issue.
Many Thanks.