Forum Discussion

Anthony Smith's avatar
Anthony Smith
Brass Contributor
Aug 16, 2018

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...
  • Haytham Amairah's avatar
    Haytham Amairah
    Aug 17, 2018

    Please make sure that the Workbook_BeforePrint Sub is in ThisWorkbook code module as the below screenshot.

     

     

Resources