Forum Discussion
Anthony Smith
Aug 16, 2018Brass Contributor
Cell is Not Recognized as Filled If Filled Using VBA
I have a cell that is highlighted yellow if a checkbox is checked. I want to restrict printing if this cell is still highlighted, but my macro is not working. My code to highlight (fill) the cell b...
- Aug 17, 2018
Please make sure that the Workbook_BeforePrint Sub is in ThisWorkbook code module as the below screenshot.
Haytham Amairah
Aug 17, 2018Silver Contributor
Hi Anthony,
I've tested this code but it works!
Please tell me what the error type you got?
- Anthony SmithAug 17, 2018Brass ContributorThe issue I'm having is that I'm still able to print.
- Haytham AmairahAug 17, 2018Silver Contributor
Please make sure that the Workbook_BeforePrint Sub is in ThisWorkbook code module as the below screenshot.
- Anthony SmithAug 17, 2018Brass Contributor
Ah yes, that seemed to be the issue. Thanks!