> 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:

![](https://216667902-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MfpNy7QBsIOaHJ1vcf-%2F-MfsXyc2MITNdgL-Uoch%2F-MfsdDupaEKzlALOMump%2Fimage.png?alt=media\&token=eef27f83-f4e6-4e17-85b2-6ffdf3eb7d18)

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