Name

workbook.RemovePersonalInformation [= setting]

Synopsis

True removes personal information, such as author name, from a workbook when it is saved; False retains that information (default). The following code saves the workbook, omitting personal information:

ThisWorkbook.RemovePersonalInformation = True
ThisWorkbook.Save

The user receives a security warning if the workbook contains macros, since they may contain personal information that Excel can’t remove.

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.