Hi,
I'm trying to set up a macro (attached to a button) that will do two things when clicked:
- change the print area
- change the font color in certain cells to match their background color.
I have the code for changing the print area, but don't know how to get the other part. Basically, if cell AC1 is not blank, I want the font in multiple cell ranges (D8:D12, D14:D18, I8:I12, I14:I18, etc.) to change to match the background color so that they aren't visible when printed. Right now I have those cells conditionally formatted so that the font turns white if AC1 is not blank, but of course that only works if the cell background is white. The users of the spreadsheet have started changing the background color on those cells on occasion.
Any assistance would be greatly appreciated!
I'm trying to set up a macro (attached to a button) that will do two things when clicked:
- change the print area
- change the font color in certain cells to match their background color.
I have the code for changing the print area, but don't know how to get the other part. Basically, if cell AC1 is not blank, I want the font in multiple cell ranges (D8:D12, D14:D18, I8:I12, I14:I18, etc.) to change to match the background color so that they aren't visible when printed. Right now I have those cells conditionally formatted so that the font turns white if AC1 is not blank, but of course that only works if the cell background is white. The users of the spreadsheet have started changing the background color on those cells on occasion.
Any assistance would be greatly appreciated!