Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
In our daily work, there may be some important information in the Excel file. In order to protect internal data from being disclosed, the company will not allow it to be printed. This document will tell you how to prevent others from printing Excel files.
You can apply the following VBA code to prevent your specific file from being printed.



The following sample code illustrates how to prevent users from printing an Excel file:
VbaModuleCollection object from the VbaProject property of Workbook.VbaModule object via the "ThisWorkbook" name.Codes property of the VbaModule.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.