I am now back in the office and have noticed that all my files that use the code above all have an error so I don't think it is file specific sadly.
Hi Michelle,
The usual answer if the error is anywhere in your system / updates or addins:
Check your system for errors.
System file check (SFC) Scan and Repair System Files & - Microsoft Community
Repair your Office
Repair an Office application - Office Support
Check if some of your AddIns causes the issue, follow these steps:
Close Excel
Press and hold the CTRL key
Open Excel
Wait for a message to appear and ask for "Safe Mode"
Release the CTRL key
Click Yes
After Excel opens
Click File\Open and select your file
Press and hold the SHIFT key
Click Open
Wait for your file to open
Release the SHIFT key
Test the behavior
It's a guessing game... ask your administrator in your company.
Andreas.