I had a few tries and I managed to work around the error by deleting all the headers and footers and adding them later via a macro code. The macro runs which is awesome and it truly finds the pages it should delete but it only deletes the top paragraph in every page. Do you guys have an idea about why this could be?