How to disable Windows Defender real time protection
Windows Defender scans all files written to the disk in real time.
During Excel workbook compilation, many temporary binary files are created on the disk and the content of those binary files is random and may match with signatures in the Windows Defender malware database. When Defender blocks such files, the compilation fails. To exclude that effect of Windows Defender on the compilation process, we suggest that you temporarily (only for the time of compilation) disable Windows Defender real time protection on your computer.
To disable Windows Defender real time protection please follow the following steps:
1. Open the Windows Security window.
2. Select “Virus & threat protection”.
3. Disable “Real-time protection” by setting the switch to the Off position.