Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Getting conditional formatting from an existing cell

$
0
0
I have dealt with a similar issue before. Maybe this helps you with your problem.
I had to increase the range of all conditional formats on a sheet.
IXLConditionalFormats condFormats = worksheet.ConditionalFormats;
    
foreach (var format in condFormats)
{
          format.Range = worksheet.Range(format.Range.RangeAddress.FirstAddress, newCell.Address);
          worksheet.ConditionalFormats.Add(format);
}                              

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>