I've been working on a VBA-enabled spreadsheet, and (apparently), I made the mistake of using Evaluate() as an argument passed to a macro.
Ever since tagging that function as an argument to a macro assignment for a rectangle and reopening the workbook, I've been presented with a prompt stating (this won't let me upload images, my apologies):
BLOCKED CONTENT Trusted document settings have changed, not all content in this file is allowed to run. Review your Trust Center settings or contact your IT administrator.
The only piece of the workbook that had been disabled was this macro that I could find. That sucks in and of itself, because now I'm back to being stumped on how to determine what worksheet a call came from and passing the worksheet name as specified by a formula in a hidden cell sure was a nice clean solution for all of 5 minutes.
I cannot clear that warning now, and it is really beginning to aggravate me. I've tried temporarily allowing all macros in the Trust Center, ensuring that the folder the workbook is located in is trusted, moving the workbook to a local folder which isn't managed by OneDrive and trusting that; making copies of the workbook, removing all traces of the macro I apparently should be sorry I ever made, and I'm beginning to think that this warning may now be permanently tagged to the workbook no matter what steps I take.
I really hope not, I suppose I can copy the modules and worksheets over to a new book, but that seems absolutely ridiculous. I have other workbooks in the same directory with the same trust settings and they enable and allow VBA to run without issue. The workbook that is giving me this grief runs its macros absolutely fine otherwise as well, but this warning WILL NOT go away, and it's present on all of the worksheets.
Here's a crazy idea that is done by other Excel prompts that would be really cool to see implemented, you know, like LETTING ME KNOW WHAT FREAKING CONTENT IS CAUSING THIS PROMPT TO SHOW UP IN THE FIRST PLACE.
I'm hoping somebody else has dealt with this issue before and has a solution because I'm starting to pull my hair out on this one.
Thanks for your time!