A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You could add a short User Definded Function in VBA that returns TRUE or FALSE depending upon where any cell is within a range. This would be used within Conditional Formatting to discern the Print_Area for an alternate Fill Colour.
Right click the sheet's tab and select View Code. Now that you are in the VB Editor, choose Insert, Module from the pull down menus. Paste this code in,
Function InRange(Range1 As Range, Range2 As Range) As Boolean
' returns True if Range1 is within Range2
Dim InterSectRange As Range
Set InterSectRange = Application.Intersect(Range1, Range2)
InRange = Not InterSectRange Is Nothing
Set InterSectRange = Nothing
End Function
... and then press ALT+Q to exit the VBE and return to Excel.
Now from anywhere in the sheet, press CTRL+A to Select All and then go to the Home tab's Style group's Conditional Formatting, New Rule.
Click Use a formula to determine which cells to format, then paste this into Format values where this formula is true:,
=InRange(A1,Print_Area)
... and click the Format... button to select Fill, Border, etc that will highlight the Print_Area cells. Click OK on each window to save your settings. The Print_Area will be highlighted as you specified in a dynamic method.
- If this proposed solution has resolved your issue(s), please return and mark it as Answered for others to consider.