We help IT Professionals succeed at work.
Get Started

Excel "privacy warning" causes a bug. How to fix that workbook without rebuilding it.

rberke asked
Last Modified: 2020-02-20
I have had this happen several times before and always ended up rebuilding the entire workbook.

The problem hit me today it is inside a pretty big workbook with vba code that was not working correctly.

I tried several dozen "fixes" but eventually had to bite the bullet and rebuild it. After rebuilding it the vba worked properly.

But in my efforts to fix things I came up two interesting workbooks.

Open NoBug.xlsm an run sub deletenow33. It does not abort.
Open Bug.xlsm and run sub deletenow33.  You will see an abort.

The Workbooks are practically identical except Bug.xlsm gives the privacy warning.

I have virtually everything including reverting from xlsm back to  xls, and the bug still occurs.

I am considering turning the .xlsm into a .zip file and doing further research, but I hope someone on experts exchange can tell me how to fix the problem WITHOUT rebuilding the workbooks.

a very simple example of why this problem is so frustrating.

I have attached to workbooks Bug.xlsm and NoBug.xlsm.  They are nearly identical. The only difference is that when I save the first
Watch Question
IT Consultancy
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE