Sorry, the missing ) was an error of mine. But was correct in the code. I didn't get any errors when compiling it. I found out what was wrong, or actually got some help from someone else. I didn't refer to an object to remove. The correct code is:
Set Old_project = Workbooks(Books_to_do(1)).VBProject.VBComponents(Sheets(I).Name)
I ditn't offer any help, so place an answar of your own, and when your own answar appears, accept it, thereby givint all the points back to your self. An accepted question is a closed question. Best regards
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.