Quick Access shortcut for privacy options

FrecklePaw
2StarLounger
Posts: 130
Joined: 12 Aug 2020, 08:40

Quick Access shortcut for privacy options

Post by FrecklePaw »

Hi there, I have to frequently remove personal details, such as author info, from documents and I find I'm click-clicking forever to do this and it's time-consuming (approx. 11+ clicks!) - is there a way to create a Quick Access Toolbar shortcut for specifically the 'remove document properties and personal info' option in the trust centre > privacy options settings?
Thx in advance.

User avatar
HansV
Administrator
Posts: 78378
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Quick Access shortcut for privacy options

Post by HansV »

You might create the following macro in your default template Normal.dotm (or in an add-in/global template), and assign it to a Quick Access Toolbar button:

Code: Select all

Sub RemoveInfo()
    With ActiveDocument
        .RemoveDocumentInformation wdRDIDocumentProperties
        .RemoveDocumentInformation wdRDIRemovePersonalInformation
        .RemovePersonalInformation = True
    End With
End Sub
Best wishes,
Hans

User avatar
Charles Kenyon
5StarLounger
Posts: 609
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Quick Access shortcut for privacy options

Post by Charles Kenyon »

Note, though, that this will wreak havoc on documents created using those Document Properties to hold information in the document.
This is my page: https://addbalance.com/word/MappedContr ... #PageStart
The alternative, there, would be to use custom mapped content controls, which is always possible. Since those are mapped to data points, though, they can also hold metadata or hidden data.

FrecklePaw
2StarLounger
Posts: 130
Joined: 12 Aug 2020, 08:40

Re: Quick Access shortcut for privacy options

Post by FrecklePaw »

Thanks both - I will try it out and see what happens - I think some documents may possibly cause an issue but I'll not know until I try, so thanks meantime. Will update with any results if I can.
Much appreciated.