How to disable "Document Properties and Personal Information" / "Author" save by default

%3CLINGO-SUB%20id%3D%22lingo-sub-2786092%22%20slang%3D%22en-US%22%3EHow%20to%20disable%20%22Document%20Properties%20and%20Personal%20Information%22%20%2F%20%22Author%22%20save%20by%20default%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2786092%22%20slang%3D%22en-US%22%3E%3CP%3EBy%20default%2C%20excel%20adds%20personal%20information%20to%20the%20workbook%2C%20which%20I%20know%20how%20to%20remove%20after%20I've%20created%20and%20saved%20the%20workbook%20via%3A%3CBR%20%2F%3E%3CEM%3E%22File%20-%26gt%3B%20Info%20-%26gt%3B%20Check%20for%20Issues%20-%26gt%3B%20Inspect%20Document%20-%26gt%3B%20Inspect%22%3C%2FEM%3E%20and%20then%20remove%20%3CEM%3E%22Document%20Properties%20and%20Personal%20Information%22%3C%2FEM%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20this%20is%20really%20annoying%20to%20need%20to%20remember%20and%20do%20for%20every%20workbook%20I%20create.%3CBR%20%2F%3EHow%20can%20I%20change%20this%20to%20be%20the%20default%20such%20that%20%3CEM%3E%22Document%20Properties%20and%20Personal%20Information%22%3C%2FEM%3E%20(especially%20author)%20won't%20be%20saved%20when%20I%20create%20a%20new%20workbook%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2786092%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2786506%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20disable%20%22Document%20Properties%20and%20Personal%20Information%22%20%2F%20%22Author%22%20sav%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2786506%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1166883%22%20target%3D%22_blank%22%3E%40yedawo7592%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Ftopic%2Fremove-hidden-data-and-personal-information-by-inspecting-documents-presentations-or-workbooks-356b7b5d-77af-44fe-a07f-9aa4d085966f%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ERemove%20hidden%20data%20and%20personal%20information%20by%20inspecting%20documents%2C%20presentations%2C%20or%20workbooks%3C%2FA%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CP%3E%3CSTRONG%3ENote%3A%26nbsp%3B%3C%2FSTRONG%3EAlthough%20you%20can%20remove%20hidden%20data%20and%20personal%20information%20from%20workbooks%20you%20have%20sent%20to%20other%20people%2C%20if%20the%20Excel%20workbook%20has%20been%20saved%20as%20a%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fabout-the-shared-workbook-feature-49b833c0-873b-48d8-8bf2-c1c59a628534%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EShared%20Workbook%3C%2FA%3E%2C%20you%20can't%20remove%20comments%2C%20annotations%2C%20document%20properties%2C%20and%20personal%20information.%20To%20remove%20this%20information%20from%20a%20shared%20workbook%2C%20first%20copy%20and%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fabout-the-shared-workbook-feature-49b833c0-873b-48d8-8bf2-c1c59a628534%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eturn%20off%20the%20Shared%20Workbook%20feature%3C%2FA%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fadmx.help%2F%3FCategory%3DOffice2016%26amp%3BPolicy%3Doffice16.Office.Microsoft.Policies.Windows%3A%3AL_DisableDocumentInformationPanel%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EDisable%20Document%20Information%20Panel%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EIf%20you%20enable%20this%20policy%20setting%2C%20forms%20and%20controls%20will%20not%20appear%20in%20the%20document%20information%20area.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EThe%20actual%20area%20appears%20when%20users%20open%20it%2C%20but%20it%20is%20empty.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EIf%20you%20disable%20or%20do%20not%20configure%20this%20policy%20setting%2C%20users%20can%20view%20the%20document%20information%20pane.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3ERegistry%26nbsp%3BHive%3C%2FTD%3E%3CTD%3EHKEY_CURRENT_USER%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ERegistry%26nbsp%3BPath%3C%2FTD%3E%3CTD%3Esoftware%5Cpolicies%5Cmicrosoft%5Coffice%5C16.0%5Ccommon%5Cdocumentinformationpanel%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EValue%26nbsp%3BName%3C%2FTD%3E%3CTD%3Edisable%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EValue%26nbsp%3BType%3C%2FTD%3E%3CTD%3EREG_DWORD%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EEnabled%26nbsp%3BValue%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EDisabled%26nbsp%3BValue%3C%2FTD%3E%3CTD%3E%3CP%3E0%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.denisreis.com%2Fexcel-vba-persoenliche-informationen-aus-dateieigenschaften-loeschen%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%3EVBA%20-%20delete%20personal%20information%20from%20file%20properties%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3C%2FA%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EOption%20Explicit%0A%0ASub%20RemovePersonalInfos()%0A%0A'Switch%20off%20warnings%0AApplication.DisplayAlerts%20%3D%20False%0A%0AWith%20ActiveWorkbook%0A'Option%20aktivieren%0A.RemovePersonalInformation%20%3D%20True%0A%0A'Personal%20information%20is%20deleted%20when%20the%20data%20is%20saved%0A.Save%0A%0A'Option%20deaktivieren%0A.RemovePersonalInformation%20%3D%20False%0A'Save%20the%20file%20again%0A.Save%0AEnd%20With%0A%0A'Switch%20on%20warning%20notices%0AApplication.DisplayAlerts%20%3D%20True%0AEnd%20Sub%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20I%20was%20able%20to%20help%20you%20with%20this%20info.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolinoDE%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWas%20the%20answer%20useful%3F%20Mark%20them%20as%20helpful!%3C%2FP%3E%3CP%3EThis%20will%20help%20all%20forum%20participants.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2789026%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20disable%20%22Document%20Properties%20and%20Personal%20Information%22%20%2F%20%22Author%22%20sav%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2789026%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40NikolinoDE%3C%2FA%3E%26nbsp%3B%3CSPAN%3EThe%20macro%20option%20(the%20third%20option%20in%20your%20reply)%20is%20the%20closest%20that%20I've%20seen%20yet.%20I%20guess%20that%20if%20I%20would%20manage%20to%20make%20it%20run%20whenever%20a%20new%20workbook%20is%20created%20it%20would%20be%20almost%20what%20I%20wanted.%20By%20the%20way%20the%20registry%20option%20(the%20second%20option%20in%20your%20reply)%20don't%20seem%20to%20have%20any%20effect%20in%20my%20machine.%20Thanks%20you%20for%20the%20help.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

By default, excel adds personal information to the workbook, which I know how to remove after I've created and saved the workbook via:
"File -> Info -> Check for Issues -> Inspect Document -> Inspect" and then remove "Document Properties and Personal Information".

 

However, this is really annoying to need to remember and do for every workbook I create.
How can I change this to be the default such that "Document Properties and Personal Information" (especially author) won't be saved when I create a new workbook?

3 Replies

@yedawo7592 

 

Remove hidden data and personal information by inspecting documents, presentations, or workbooks

 

Note: Although you can remove hidden data and personal information from workbooks you have sent to other people, if the Excel workbook has been saved as a Shared Workbook, you can't remove comments, annotations, document properties, and personal information. To remove this information from a shared workbook, first copy and turn off the Shared Workbook feature.

 

Disable Document Information Panel

If you enable this policy setting, forms and controls will not appear in the document information area. The actual area appears when users open it, but it is empty. If you disable or do not configure this policy setting, users can view the document information pane.

Registry HiveHKEY_CURRENT_USER
Registry Pathsoftware\policies\microsoft\office\16.0\common\documentinformationpanel
Value Namedisable
Value TypeREG_DWORD
Enabled Value1
Disabled Value

0

 

VBA - delete personal information from file properties

 

Option Explicit

Sub RemovePersonalInfos()

'Switch off warnings
Application.DisplayAlerts = False

With ActiveWorkbook
'Option aktivieren
.RemovePersonalInformation = True

'Personal information is deleted when the data is saved
.Save

'Option deaktivieren
.RemovePersonalInformation = False
'Save the file again
.Save
End With

'Switch on warning notices
Application.DisplayAlerts = True
End Sub

 

 

Hope I was able to help you with this info.

 

NikolinoDE

 

Was the answer useful? Mark them as helpful!

This will help all forum participants.

@NikolinoDE The macro option (the third option in your reply) is the closest that I've seen yet. I guess that if I would manage to make it run whenever a new workbook is created it would be almost what I wanted. By the way the registry option (the second option in your reply) don't seem to have any effect in my machine. Thanks you for the help.

I've ended up using the VB from above to make it execute whenever a new workbook is created and remove personal information. These are the steps in case anyone else needs it:


1) Create a "personal.xlsm" file and put it in "C:\Users\<USER>\AppData\Roaming\Microsoft\Excel\XLSTART\"

 

2) In the Macro Dialog in the "personal.xlsm" file then:

 

a) Add a new class called "AppEvents"

 

b) In the "AppEvents" dialog enter the following code:

Private WithEvents App1 As Application

Private Sub Class_Initialize()
  Set App1 = Application
End Sub

Private Sub App1_NewWorkbook(ByVal Wb As Workbook)
  RemovePersonalInformation
End Sub

Private Sub RemovePersonalInformation()
  Application.DisplayAlerts = False

  With ActiveWorkbook
    .RemovePersonalInformation = True
    .Save
  End With

  Application.DisplayAlerts = True
End Sub

c) In the "ThisWorkbook" dialog enter the following code:

Private AppEvents1 As AppEvents

Private Sub Workbook_Open()
  Set AppEvents1 = New AppEvents
End Sub