> For the complete documentation index, see [llms.txt](https://kwcsec.gitbook.io/the-red-team-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kwcsec.gitbook.io/the-red-team-handbook/techniques/initial-access/ms-office/macros/evasion/revert-to-legacy-warning-in-excel.md).

# Revert To Legacy Warning in Excel

When using ActiveX controls like AutoOpen, Excel has a custom warning about using ActiveX controls and issues the following warning:

![](/files/-MfsdDupaEKzlALOMump)

1. Unzip the document
2. Add the `visibility="hidden"` attribute to the `workbookView` element in the `xl/workbook.xml` file.
