Forum Discussion
Conditional Formatting for Spilled Arrays
Maybe this will help you a bit.
Code in the workbook module.
I included...
- CreateExpandedNamedRange — creates or updates a workbook-level named range that refers to an explicit start:end inside a container range (safe fallback to a single-cell if requested size doesn't fit).
- UpdateCF_AppliesTo_FromNamedReferences — scans conditional formatting rules and, where it finds a formula that contains a named range, updates that rule's AppliesTo to the named range's current RefersToRange.
- CreateExpandedNamedRangeAndUpdateCF — wrapper to create a named range and immediately update CF rules (convenience).
- Detailed comments, usage examples, and safety notes inside the module.
My answers are voluntary and without guarantee!
- joelb95Oct 06, 2025Brass Contributor
Hi Nikolino,
I tried opening your file, but there does not appear to be anything in it. Can you try uploading it again?
- NikolinoDEOct 06, 2025Platinum Contributor
Enable Makros. The code is in Module 1.
I've also inserted the code as text into the worksheet. See the attached file.
- joelb95Oct 06, 2025Brass Contributor
I tried re-downloading it and opening it, but it literally opens as a blank workbook with just the name of the file. Not sure why. Any idea on what I might do differently? I am even changing the properties on the file to allow it to open with macros before opening the file for the first time, so I'm not sure why it would be stripping any content from the file after downloading but before opening.