how to remove Privacy Warning

nahla

New Member
Joined
Dec 5, 2010
Messages
9
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
 
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"
:)

Thanks Dear
Its really working only for saying you thanks I registered here and again saying you thanks......
bye...........:LOL:
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I know that it is an old post, but I found a solution for this.
I have Excel 2010 and this is how I solved it:
File
Options
Trust Center
Trust Center Settings
and when I clicked on the Document Inspector button, it told me that it couldn't inspect the workbook because I had a Protected worksheet. Upon revising the protection of each of the worksheets, i did find one, unprotected it, and Voila!, problem solved.
IMPORTANT NOTE: If you happen to run the Doc Inspector, be very careful what you have it clean, for it does a more thorough job than when one is closing the file.

I hope this helps someone else.
Cheers.
 
Upvote 0
I did the same in excel 2010 and it works great! Thanks

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"
:)
 
Upvote 0
In the workbook module add the following and it will save like normal without using special buttons.

Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    With Application
        .DisplayAlerts = False
        .EnableEvents = False
        ThisWorkbook.Save
        Cancel = True
        .EnableEvents = True
        .DisplayAlerts = True
    End With
End Sub
[\Code]

Technically I didn't have to use the "With" and the "."s but this is better.......
 
Last edited:
Upvote 0
The previous code over rode the Save As box
Use this instead

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
With Application
.DisplayAlerts = False
.EnableEvents = False
If SaveAsUI Then
Application.Dialogs(xlDialogSaveAs).Show
Else
ThisWorkbook.Save
End If
Cancel = True
.EnableEvents = True
.DisplayAlerts = True
End With
End Sub
 
Upvote 0
I know that it is an old post, but I found a solution for this.
I have Excel 2010 and this is how I solved it:
File
Options
Trust Center
Trust Center Settings
and when I clicked on the Document Inspector button, it told me that it couldn't inspect the workbook because I had a Protected worksheet. Upon revising the protection of each of the worksheets, i did find one, unprotected it, and Voila!, problem solved.
IMPORTANT NOTE: If you happen to run the Doc Inspector, be very careful what you have it clean, for it does a more thorough job than when one is closing the file.

I hope this helps someone else.
Cheers.
the issue
This was not the solution for me, it didn't work/was not causing.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top