troubleshooting Question

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

Avatar of Robert Berke
Robert BerkeFlag for United States of America asked on
VBAMicrosoft Excel
9 Comments1 Solution194 ViewsLast Modified:
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
bug.xlsm
NoBug.xlsm
ASKER CERTIFIED SOLUTION
Steve Knight
IT Consultancy

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros