Embedded text box from legacy tools

I accidentally embedded a text box in Excel from legacy tools. I tried to delete it and got the error message “The formula is missing a range ref or a defined name”. All of the tabs and commands are greyed out, and if I try to do anything (even close Excel) the error message pops up. So I can’t do anything with this form at this point. Any ideas on how to delete this box and error message?