See if this helps http://www.mrexcel.com/forum/showthread.php?t=361777
Thanks: 0
Likes: 0
Hi Every body,
every time i save excel sheet (With VBA code). warning message appeared which is:
" Privacy Warning:this document contains macros,ActiveX controls,XML expansion pack information or web components. these may include personal information that cannot be removed by the document Inspector."
how can i avoid it.
thanks,
Nahla

See if this helps http://www.mrexcel.com/forum/showthread.php?t=361777
HTH, Peter
Please test any code on a copy of your workbook.

assign a button to this code & click on the button to save..
Hi Peter!Code:Sub try() Application.DisplayAlerts = False ActiveWorkbook.Save Application.DisplayAlerts = True End Sub
Regards,
Pedie
MS OFFICE 2016/EXCEL 2016: Window7: 64BIT
Visit YouTube.com/VBAa2z
HI,
it works thx alot,
Nahla
For Excel 2007 Version :
You can follow the following steps to avoide the privacy warning.
1 Menu Button "on the top left of the excel window"
2 Excel Option
3 Trust Center
4 Trust Center setting
5 Privacy Options
6 unmark the "Remove personal information from file properties on save"
![]()
Worked like a breeze!
Thanks a lot..![]()
Thanks Swing,
This solution worked a charm.
Gustav
Thanks. It worked.
TKX! it works fine for me!
Why does it do this? I have Excel 2010 on my computer, and did right click (on desktop) create new Excel document. It creates a .xlsx, which is apparently an Excel 2003 document (???) but in any case, I add some data to cells, nothing fancy, then every time I save it it gives me this popup.
I have not done any of the 4 things listed in the warning popup:
macros,ActiveX controls,XML expansion pack information or web components
so why is it doing this anyway?
Like this thread? Share it with others