You don't actually need to activate workbooks with VBA, also please wrap your code with Code tags